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;
 }
Exemple #2
0
        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;
        }