public static void New(InitializeBuildingConfig initConfig, Dictionary<Type, DataModule> dataModules, ushort ID) { if (library.ContainsKey(ID)) return; BuildingConfig config = new BuildingConfig(); config.name = initConfig.name; config.playerControlled = initConfig.playerControlled; config.primaryBehavior = initConfig.primary.name; config.primaryMaxLevel = initConfig.primary.defaultMaxLevel; }
public static void New(InitializeBuildingConfig initConfig, Dictionary <Type, DataModule> dataModules, ushort ID) { if (library.ContainsKey(ID)) { return; } BuildingConfig config = new BuildingConfig(); config.name = initConfig.name; config.playerControlled = initConfig.playerControlled; config.primaryBehavior = initConfig.primary.name; config.primaryMaxLevel = initConfig.primary.defaultMaxLevel; }