protected override void Init(MyObjectBuilder_DefinitionBase ob) { base.Init(ob); MyObjectBuilder_GuiBlockCategoryDefinition builder = (ob as MyObjectBuilder_GuiBlockCategoryDefinition); this.Name = builder.Name; this.ItemIds = new HashSet <string>(builder.ItemIds.ToList()); this.IsBlockCategory = builder.IsBlockCategory; this.IsShipCategory = builder.IsShipCategory; this.SearchBlocks = builder.SearchBlocks; this.ShowAnimations = builder.ShowAnimations; this.Public = builder.Public; }
protected override void Init(MyObjectBuilder_DefinitionBase ob) { base.Init(ob); MyObjectBuilder_GuiBlockCategoryDefinition definition = ob as MyObjectBuilder_GuiBlockCategoryDefinition; this.Name = definition.Name; this.ItemIds = new HashSet <string>(definition.ItemIds.ToList <string>()); this.IsBlockCategory = definition.IsBlockCategory; this.IsShipCategory = definition.IsShipCategory; this.SearchBlocks = definition.SearchBlocks; this.ShowAnimations = definition.ShowAnimations; this.ShowInCreative = definition.ShowInCreative; this.Public = definition.Public; this.IsAnimationCategory = definition.IsAnimationCategory; this.IsToolCategory = definition.IsToolCategory; }