public static void PlaceItem(Players.Player player, PlayerClickedData data) { if (data.TypeSelected != ItemTypes.GetType(itemName).ItemIndex) { return; } else if (data.TypeSelected == ItemTypes.GetType(itemName).ItemIndex) { if (data.ClickType == PlayerClickedData.EClickType.Left) { Dictionary <string, JobCounts> jobCounts = SendColonyUI.GetJobCounts(player.ActiveColony); NetworkMenuManager.SendServerPopup(player, SendColonyUI.BuildMenu(player, jobCounts, false, string.Empty, 0)); } } }
public bool TryDoCommand(Players.Player player, string chat, List <string> splits) { if (player == null) { return(false); } if (!chat.Equals("?nach0manager")) { return(false); } Dictionary <string, JobCounts> jobCounts = SendColonyUI.GetJobCounts(player.ActiveColony); NetworkMenuManager.SendServerPopup(player, SendColonyUI.BuildMenu(player, jobCounts, false, string.Empty, 0)); return(true); }