コード例 #1
0
 public static void Ship(int ShipID)
 {
     ThePlayer Me = new ThePlayer();
     Me.Fleets
         .SingleOrDefault(x => x.Location == Location.Base)
         .Ships
         .SingleOrDefault(x=>x.EntityID==ShipID)
         .Quantity++;
 }
コード例 #2
0
        public static void Ship(int ShipID)
        {
            ThePlayer Me = new ThePlayer();

            Me.Fleets
            .SingleOrDefault(x => x.Location == Location.Base)
            .Ships
            .SingleOrDefault(x => x.EntityID == ShipID)
            .Quantity++;
        }