private void SquadLeaderAddAction(Ship.GenericShip host) { ActionsList.GenericAction newAction = new ActionsList.SquadLeaderAction() { ImageUrl = ImageUrl, Host = this.Host }; host.AddAvailableAction(newAction); }
private void R5D8AddAction(Ship.GenericShip host) { ActionsList.GenericAction action = new ActionsList.R5D8Action() { ImageUrl = HostUpgrade.ImageUrl }; host.AddAvailableAction(action); }
private void AddT65BAction(Ship.GenericShip host) { ActionsList.GenericAction newAction = new ActionsList.T65BAction() { ImageUrl = ImageUrl, Host = Host }; host.AddAvailableAction(newAction); }
private void AddAction(Ship.GenericShip host) { var alreadyHasAction = host.BuiltInActions.Find(n => n.GetType() == typeof(T)); if (alreadyHasAction == null) { host.AddAvailableAction(new T()); } }
private void MarksmanshipAddAction(Ship.GenericShip host) { ActionsList.GenericAction newAction = new ActionsList.MarksmanshipAction(); newAction.ImageUrl = ImageUrl; host.AddAvailableAction(newAction); }