public static MyWorldGeneratorOperationBase CreateInstance(MyObjectBuilder_WorldGeneratorOperation builder) { var instance = m_objectFactory.CreateInstance(builder.TypeId); instance.Init(builder); return instance; }
public override void Init(MyObjectBuilder_WorldGeneratorOperation builder) { base.Init(builder); var ob = builder as MyObjectBuilder_WorldGeneratorOperation_CreatePlanet; DefinitionName = ob.DefinitionName; DefinitionName = ob.DefinitionName; AddGPS = ob.AddGPS; Diameter = ob.Diameter; PositionMinCorner = ob.PositionMinCorner; PositionCenter = ob.PositionCenter; }
public virtual void Init(MyObjectBuilder_WorldGeneratorOperation builder) { this.FactionTag = builder.FactionTag; }
public override void Init(MyObjectBuilder_WorldGeneratorOperation builder) { base.Init(builder); var ob = builder as MyObjectBuilder_WorldGeneratorOperation_AddPlanetPrefab; DefinitionName = ob.DefinitionName; PrefabName = ob.PrefabName; Position = ob.Position; AddGPS = ob.AddGPS; }
public override void Init(MyObjectBuilder_WorldGeneratorOperation builder) { base.Init(builder); var ob = builder as MyObjectBuilder_WorldGeneratorOperation_SetupBasePrefab; PrefabFile = ob.PrefabFile; Offset = ob.Offset; AsteroidName = ob.AsteroidName; BeaconName = ob.BeaconName; }
public override void Init(MyObjectBuilder_WorldGeneratorOperation builder) { base.Init(builder); var ob = builder as MyObjectBuilder_WorldGeneratorOperation_AddObjectsPrefab; PrefabFile = ob.PrefabFile; }
public override void Init(MyObjectBuilder_WorldGeneratorOperation builder) { base.Init(builder); var ob = builder as MyObjectBuilder_WorldGeneratorOperation_AddAsteroidPrefab; Name = ob.Name; PrefabName = ob.PrefabFile; Position = ob.Position; }
public override void Init(MyObjectBuilder_WorldGeneratorOperation builder) { base.Init(builder); var ob = builder as MyObjectBuilder_WorldGeneratorOperation_AddShipPrefab; PrefabFile = ob.PrefabFile; UseFirstGridOrigin = ob.UseFirstGridOrigin; Transform = ob.Transform; RandomRadius = ob.RandomRadius; }