public void AddOption(RPGGameEvent option) { int s = RPGGameEventUtils.MenuSortOrder(option); if (!MenuOptions.ContainsKey(s)) { MenuOptions.Add(s, option); } }
public static void AddOption(int entityID, RPGGameEvent option) { var menu = GameBehavior.thisGame.EntityManager.GetComponent <MenuComponent>(entityID); if (menu == null) { return; } int s = RPGGameEventUtils.MenuSortOrder(option); if (!menu.MenuOptions.ContainsKey(s)) { menu.MenuOptions.Add(s, option); } }
public void RemoveOption(RPGGameEvent option) { MenuOptions.Remove(RPGGameEventUtils.MenuSortOrder(option)); }
public bool OptionIsActive(RPGGameEvent option) { return(MenuOptions.ContainsKey(RPGGameEventUtils.MenuSortOrder(option))); }