Core - Add LevelRules class

This commit is contained in:
miku-666
2025-11-10 07:27:27 +01:00
parent 7d9f00cb6a
commit e5489daa2f
6 changed files with 37 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ namespace PckStudio.Core
new GameRuleFile.IntParameter("mapSize", (int)mapSize),
new GameRuleFile.IntParameter("themeId", 0)
);
LevelRules = Grf.AddRule("LevelRules", [new GameRuleFile.IntParameter("ruleType", (int)miniGame)]);
LevelRules = Grf.AddRule(GameRule.LevelRules.GetLevelRules(miniGame));
World = world;
}