private void CurrentToolbar_Unselected(MyToolbar toolbar) { BotToSpawn = null; CommandDefinition = null; }
private void CurrentToolbar_SelectedSlotChanged(MyToolbar toolbar, MyToolbar.SlotArgs args) { if (!(toolbar.SelectedItem is MyToolbarItemBot)) BotToSpawn = null; if (!(toolbar.SelectedItem is MyToolbarItemAiCommand)) CommandDefinition = null; }
private void CurrentToolbar_SlotActivated(MyToolbar toolbar, MyToolbar.SlotArgs args) { if (!(toolbar.GetItemAtIndex(toolbar.SlotToIndex(args.SlotNumber.Value)) is MyToolbarItemBot)) BotToSpawn = null; if (!(toolbar.GetItemAtIndex(toolbar.SlotToIndex(args.SlotNumber.Value)) is MyToolbarItemAiCommand)) CommandDefinition = null; }
public void InitCommand(MyAiCommandDefinition definition) { Definition = definition as MyAiCommandBehaviorDefinition; }