コード例 #1
0
 public Protocol.DeskInfo GetInfo()
 {
     Protocol.DeskInfo result = new Protocol.DeskInfo();
     result.Seats  = new List <Protocol.SeatInfo>();
     result.DeskID = this.ID;
     result.Name   = this.Name;
     for (int i = 0; i < Seats.Count; i++)
     {
         Interfaces.ISeat seat = Seats[i];
         result.Seats.Add(seat.GetInfo());
     }
     return(result);
 }
コード例 #2
0
ファイル: Desk.cs プロジェクト: GameHackers/siqi
 public Protocol.DeskInfo GetInfo()
 {
     Protocol.DeskInfo result = new Protocol.DeskInfo();
     result.Seats = new List<Protocol.SeatInfo>();
     result.DeskID = this.ID;
     result.Name = this.Name;
     for (int i = 0; i < Seats.Count; i++)
     {
         Interfaces.ISeat seat = Seats[i];
         result.Seats.Add(seat.GetInfo());
     }
     return result;
 }