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