static StartScene() { GMRoot.logger = GD.Print; GMRoot.modder = new Modder(GlobalPath.mod); foreach (var language in GMRoot.modder.languages) { TranslateServerEx.AddTranslate(language); } Directory.CreateDirectory(GlobalPath.save); }
// Declare member variables here. Examples: // private int a = 2; // private string b = "text"; static StartScene() { System.IO.Directory.CreateDirectory(GlobalPath.save); Root.logger = (value) => GD.Print(value); Mod.logger = (value) => GD.Print(value); ModDataVisit.InitVisitMap(typeof(Root)); Mod.Load(GlobalPath.mod); Root.def = Mod.def; foreach (var mod in Mod.Enumerate()) { TranslateServerEx.AddTranslate(mod.languages); } }