Compare commits

...

5 Commits

Author SHA1 Message Date
3dbee3f3cc modify ConfigPlugin 2025-08-15 22:36:59 -04:00
3fe0ad1623 replace omnisharp with csharp-ls 2025-08-15 22:36:48 -04:00
bc194e4761 added root .gitignore 2025-08-15 18:25:19 -04:00
2af54f1845 added readme
more to put in here later
2025-08-14 14:26:44 -04:00
5c47c58241 added nix flakes 2025-08-14 14:26:34 -04:00
6 changed files with 94 additions and 4 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.vs/
.vscode/
.idea/

View File

@@ -14,7 +14,7 @@ namespace ConfigPlugin
public override Version Version => new Version(1, 0, 0, 0); public override Version Version => new Version(1, 0, 0, 0);
// instantiate our config class // instantiate our config class
public static readonly string ConfigPath = Path.Combine(TShock.SavePath, "Config.json"); public static readonly string ConfigPath = Path.Combine(TShock.SavePath, "ConfigPlugin.json");
private Config? _config = new Config(); private Config? _config = new Config();
public override void Initialize() public override void Initialize()
@@ -24,7 +24,7 @@ namespace ConfigPlugin
PerformConfigOperations(); PerformConfigOperations();
Console.WriteLine("[ConfigPlugin] Plugin is loaded"); Console.WriteLine("[ConfigPlugin] Plugin is loading...");
} }
private void OnReload(ReloadEventArgs args) private void OnReload(ReloadEventArgs args)
@@ -58,8 +58,10 @@ namespace ConfigPlugin
{ {
if (disposing) if (disposing)
{ {
Console.WriteLine("[ConfigPlugin] Plugin is unloading...");
}
base.Dispose(disposing); base.Dispose(disposing);
} }
} }
} }
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# Terraria Plugin Template
Design and developed by Wyatt J. Miller, 2025

40
flake.lock generated Normal file
View File

@@ -0,0 +1,40 @@
{
"nodes": {
"flake-schemas": {
"locked": {
"lastModified": 1721999734,
"narHash": "sha256-G5CxYeJVm4lcEtaO87LKzOsVnWeTcHGKbKxNamNWgOw=",
"rev": "0a5c42297d870156d9c57d8f99e476b738dcd982",
"revCount": 75,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.5/0190ef2f-61e0-794b-ba14-e82f225e55e6/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%2A"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1754937576,
"narHash": "sha256-3sWA5WJybUE16kIMZ3+uxcxKZY/JRR4DFBqLdSLBo7w=",
"rev": "ddae11e58c0c345bf66efbddbf2192ed0e58f896",
"revCount": 808080,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2505.808080%2Brev-ddae11e58c0c345bf66efbddbf2192ed0e58f896/01989f5e-b09d-7b09-9699-5d522e6f12ce/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/%2A"
}
},
"root": {
"inputs": {
"flake-schemas": "flake-schemas",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

41
flake.nix Normal file
View File

@@ -0,0 +1,41 @@
# This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.22)
{
description = "Terraria Plugin flake";
inputs = {
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*";
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
};
outputs = { self, flake-schemas, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in {
schemas = flake-schemas.schemas;
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
curl
git
jq
wget
nixpkgs-fmt
dotnet-sdk_9
dotnetPackages.Nuget
csharp-ls
mono
];
};
env = {
DOTNET_ROOT = "${pkgs.dotnet-sdk_9}/share/dotnet";
DOTNET_GENERATE_ASPNET_CERTIFICATE = "false";
DOTNET_NOLOGO = "true";
DOTNET_CLI_TELEMETRY_OPTOUT = "false";
};
});
};
}