protected override void Init(MyObjectBuilder_DefinitionBase builder) { base.Init(builder); MyObjectBuilder_DebrisDefinition definition = builder as MyObjectBuilder_DebrisDefinition; this.Model = definition.Model; this.Type = definition.Type; this.MinAmount = definition.MinAmount; }
protected override void Init(MyObjectBuilder_DefinitionBase builder) { base.Init(builder); var ob = builder as MyObjectBuilder_DebrisDefinition; MyDebug.AssertDebug(ob != null); this.Model = ob.Model; this.Type = ob.Type; }