Ejemplo n.º 1
0
		public MyAreaMarker(MyPositionAndOrientation positionAndOrientation, MyAreaMarkerDefinition definition)
        {
            m_definition = definition;
            Debug.Assert(definition != null, "Area marker definition cannot be null!");
            if (definition == null) return;

			MatrixD matrix = MatrixD.CreateWorld(positionAndOrientation.Position, positionAndOrientation.Forward, positionAndOrientation.Up);

			PositionComp.SetWorldMatrix((MatrixD)matrix);
			if (MyPerGameSettings.LimitedWorld)
			{
				ClampToWorld();
			}

            InitInternal();
        }
Ejemplo n.º 2
0
		private void CurrentToolbar_Unselected(MyToolbar toolbar)
		{
			AreaMarkerDefinition = null;
		}
Ejemplo n.º 3
0
		private void CurrentToolbar_SlotActivated(MyToolbar toolbar, MyToolbar.SlotArgs args)
		{
			if (!(toolbar.GetItemAtIndex(toolbar.SlotToIndex(args.SlotNumber.Value)) is MyToolbarItemAreaMarker))
				AreaMarkerDefinition = null;
		}
Ejemplo n.º 4
0
		private void CurrentToolbar_SelectedSlotChanged(MyToolbar toolbar, MyToolbar.SlotArgs args)
		{
			if (!(toolbar.SelectedItem is MyToolbarItemAreaMarker))
				AreaMarkerDefinition = null;
		}
Ejemplo n.º 5
0
        private void CurrentToolbar_Unselected(MyToolbar toolbar)
        {
            BotToSpawn = null;
            CommandDefinition = null;
			AreaMarkerDefinition = null;
        }
Ejemplo n.º 6
0
        private void CurrentToolbar_SelectedSlotChanged(MyToolbar toolbar, MyToolbar.SlotArgs args)
        {
            if (!(toolbar.SelectedItem is MyToolbarItemBot))
                BotToSpawn = null;
            if (!(toolbar.SelectedItem is MyToolbarItemAiCommand))
                CommandDefinition = null;
			if (!(toolbar.SelectedItem is MyToolbarItemAreaMarker))
				AreaMarkerDefinition = null;
        }