Exemple #1
0
 private void SquadLeaderAddAction(Ship.GenericShip host)
 {
     ActionsList.GenericAction newAction = new ActionsList.SquadLeaderAction()
     {
         ImageUrl = ImageUrl, Host = this.Host
     };
     host.AddAvailableAction(newAction);
 }
Exemple #2
0
 private void R5D8AddAction(Ship.GenericShip host)
 {
     ActionsList.GenericAction action = new ActionsList.R5D8Action()
     {
         ImageUrl = HostUpgrade.ImageUrl
     };
     host.AddAvailableAction(action);
 }
Exemple #3
0
 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());
            }
        }
Exemple #5
0
 private void MarksmanshipAddAction(Ship.GenericShip host)
 {
     ActionsList.GenericAction newAction = new ActionsList.MarksmanshipAction();
     newAction.ImageUrl = ImageUrl;
     host.AddAvailableAction(newAction);
 }