Ejemplo n.º 1
0
        public TurretBaseEntity(CubeGridEntity parent, MyObjectBuilder_TurretBase definition, Object backingObject)
            : base(parent, definition, backingObject)
        {
            m_turretNetworkManager = new TurretNetworkManager(this, GetNetworkManager( ));
            m_inventory            = new InventoryEntity(definition.Inventory, GetTurretInventory( ));

            m_shootingRange  = definition.Range;
            m_searchingRange = m_shootingRange + 100;

            m_targetMeteors  = definition.TargetMeteors;
            m_targetMissiles = definition.TargetMissiles;
        }
		public TurretBaseEntity(CubeGridEntity parent, MyObjectBuilder_TurretBase definition, Object backingObject)
			: base(parent, definition, backingObject)
		{
			m_turretNetworkManager = new TurretNetworkManager(this, GetNetworkManager());
			m_inventory = new InventoryEntity(definition.Inventory, GetTurretInventory());

			m_shootingRange = definition.Range;
			m_searchingRange = m_shootingRange + 100;

			m_targetMeteors = definition.TargetMeteors;
			m_targetMissiles = definition.TargetMissiles;
			m_targetMoving = definition.TargetMoving;
		}