Compare commits
5 Commits
a615c5851d
...
master
Author | SHA1 | Date | |
---|---|---|---|
3dbee3f3cc | |||
3fe0ad1623 | |||
bc194e4761 | |||
2af54f1845 | |||
5c47c58241 |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.vs/
|
||||
.vscode/
|
||||
.idea/
|
@@ -14,7 +14,7 @@ namespace ConfigPlugin
|
||||
public override Version Version => new Version(1, 0, 0, 0);
|
||||
|
||||
// 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();
|
||||
|
||||
public override void Initialize()
|
||||
@@ -24,7 +24,7 @@ namespace ConfigPlugin
|
||||
|
||||
PerformConfigOperations();
|
||||
|
||||
Console.WriteLine("[ConfigPlugin] Plugin is loaded");
|
||||
Console.WriteLine("[ConfigPlugin] Plugin is loading...");
|
||||
}
|
||||
|
||||
private void OnReload(ReloadEventArgs args)
|
||||
@@ -58,8 +58,10 @@ namespace ConfigPlugin
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
Console.WriteLine("[ConfigPlugin] Plugin is unloading...");
|
||||
}
|
||||
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
}
|
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Terraria Plugin Template
|
||||
|
||||
Design and developed by Wyatt J. Miller, 2025
|
40
flake.lock
generated
Normal file
40
flake.lock
generated
Normal 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
41
flake.nix
Normal 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";
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user