Exemple #1
0
 protected MovedRecipe(string key, ICollection <EmProperty> definitions) : base(key, definitions)
 {
     oldPath = (EmProperty <string>)Properties[OldPathKey];
     newPath = (EmProperty <string>)Properties[NewPathKey];
     hidden  = (EmYesNo)Properties[HiddenKey];
     copied  = (EmYesNo)Properties[CopyKey];
 }
Exemple #2
0
        protected CustomFabricator(string key, ICollection <EmProperty> definitions) : base(key, definitions)
        {
            model                   = (EmProperty <ModelTypes>)Properties[ModelKey];
            colortint               = (EmColorRGB)Properties[ColorTintKey];
            allowedInBase           = (EmYesNo)Properties[AllowedInBaseKey];
            allowedInCyclops        = (EmYesNo)Properties[AllowedInCyclopsKey];
            this.CustomCraftingTabs = (EmPropertyCollectionList <CfCustomCraftingTab>)Properties[CfCustomCraftingTabListKey];
            this.MovedRecipes       = (EmPropertyCollectionList <CfMovedRecipe>)Properties[CfMovedRecipeListKey];
            this.AddedRecipes       = (EmPropertyCollectionList <CfAddedRecipe>)Properties[CfAddedRecipeListKey];
            this.AliasRecipes       = (EmPropertyCollectionList <CfAliasRecipe>)Properties[CfAliasRecipeListKey];
            this.CustomFoods        = (EmPropertyCollectionList <CfCustomFood>)Properties[CfCustomFoodListKey];

            path.Optional = true;
        }
Exemple #3
0
 public CustomCraft2Config(string key, ICollection <EmProperty> definitions) : base(key, definitions)
 {
     debugLogging = (EmYesNo)Properties[DebugLogsKey];
 }