コード例 #1
0
 public override void Update(float deltaTime)
 {
     if (!initialized)
     {
         foreach (var table in Tables)
         {
             Seats.AddRange(table.Seats);
         }
         Seats.AddRange(Queue.Seats);
         // Add seats and tables to world
         foreach (var table in Tables)
         {
             Room.Models.Add(table);
         }
         foreach (var seat in Seats)
         {
             Room.Models.Add(seat);
         }
         initialized = true;
     }
 }
コード例 #2
0
 public void AddSeats(AdjacentSeats adjacentSeats)
 {
     Seats.AddRange(adjacentSeats.Take(PartyRequested.PartySize));
 }
コード例 #3
0
 public void AddSeats(AdjacentSeats adjacentSeats)
 {
     Seats.AddRange(adjacentSeats);
 }