コード例 #1
0
        public override void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder)
        {
            base.Init(builder);

            var ob = builder as MyObjectBuilder_WorldGeneratorPlayerStartingState_RespawnShip;
            m_respawnShipId = ob.RespawnShip;
        }
コード例 #2
0
            public static MyWorldGeneratorStartingStateBase CreateInstance(MyObjectBuilder_WorldGeneratorPlayerStartingState builder)
            {
                var instance = m_objectFactory.CreateInstance(builder.TypeId);

                instance.Init(builder);
                return(instance);
            }
コード例 #3
0
        public virtual MyObjectBuilder_WorldGeneratorPlayerStartingState GetObjectBuilder()
        {
            MyObjectBuilder_WorldGeneratorPlayerStartingState builder = Sandbox.Game.World.MyWorldGenerator.StartingStateFactory.CreateObjectBuilder(this);

            builder.FactionTag = this.FactionTag;

            return(builder);
        }
コード例 #4
0
        public override void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder)
        {
            base.Init(builder);

            var ob = builder as MyObjectBuilder_WorldGeneratorPlayerStartingState_RespawnShip;

            m_respawnShipId = ob.RespawnShip;
        }
コード例 #5
0
            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;
            }
コード例 #6
0
 public virtual void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder)
 {
     this.FactionTag = builder.FactionTag;
 }
コード例 #7
0
 public virtual void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder)
 {
 }
コード例 #8
0
 public static MyWorldGeneratorStartingStateBase CreateInstance(MyObjectBuilder_WorldGeneratorPlayerStartingState builder)
 {
     var instance = m_objectFactory.CreateInstance(builder.TypeId);
     instance.Init(builder);
     return instance;
 }
コード例 #9
0
        public virtual void Init(MyObjectBuilder_WorldGeneratorPlayerStartingState builder)
        {

        }
コード例 #10
0
            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;
            }