public override void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder) { base.Init(builder); var ob = builder as MyObjectBuilder_WorldGeneratorPlayerStartingState_RespawnShip; m_respawnShipId = ob.RespawnShip; }
public static MyWorldGeneratorStartingStateBase CreateInstance(MyObjectBuilder_WorldGeneratorPlayerStartingState builder) { var instance = m_objectFactory.CreateInstance(builder.TypeId); instance.Init(builder); return(instance); }
public virtual MyObjectBuilder_WorldGeneratorPlayerStartingState GetObjectBuilder() { MyObjectBuilder_WorldGeneratorPlayerStartingState builder = Sandbox.Game.World.MyWorldGenerator.StartingStateFactory.CreateObjectBuilder(this); builder.FactionTag = this.FactionTag; return(builder); }
public override void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder) { base.Init(builder); var ob = builder as MyObjectBuilder_WorldGeneratorPlayerStartingState_Transform; Transform = ob.Transform; JetpackEnabled = ob.JetpackEnabled; DampenersEnabled = ob.DampenersEnabled; }
public virtual void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder) { this.FactionTag = builder.FactionTag; }
public virtual void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder) { }
public static MyWorldGeneratorStartingStateBase CreateInstance(MyObjectBuilder_WorldGeneratorPlayerStartingState builder) { var instance = m_objectFactory.CreateInstance(builder.TypeId); instance.Init(builder); return instance; }