11 this.branch = _branch;
12 foreach (
Meeting meeting
in this.list)
14 meeting.SetOwner(this.branch);
21 if (this.list.Count > 0)
23 for (
int i = this.list.Count - 1; i >= 0; i--)
25 if (this.list[i].dateExipire != 0 && date.IsExpired(
this.list[i].dateExipire))
27 this.list.RemoveAt(i);
31 int count = this.list.Count;
38 meetingMerchant.dateExipire = date.GetRaw(0) + 10080;
39 this.list.Add(meetingMerchant);
42 Msg.Say(
"newMeeting");
60 public bool CanStartMeeting
64 return this.list.Count > 0 && this.SetRoom() !=
null;
73 if (traitSpotMeeting !=
null)
75 this.room = traitSpotMeeting.owner.Cell.room;
76 if (this.room ==
null)
78 this.room =
new VirtualRoom(traitSpotMeeting.owner);
83 this.room =
EClass._map.rooms.listRoom.RandomItem<
Room>();
92 Thing emptySeat = this.room.GetEmptySeat();
93 EClass.pc.MoveImmediate(((emptySeat !=
null) ? emptySeat.pos :
null) ??
this.room.GetRandomPoint(
true,
false),
true,
true);
98 public void CallNext()
100 if (this.list.Count == 0)
104 Thing emptySeat = this.room.GetEmptySeat();
105 Point chara = ((emptySeat !=
null) ? emptySeat.pos :
null) ?? this.room.GetRandomPoint(
true,
false);
106 Meeting meeting = this.list[0];
107 this.list.RemoveAt(0);
108 meeting.SetChara(chara);
112 GameLang.refDrama1 = meeting.chara.Name;
113 LayerDrama.Activate(
"_chara",
null,
"meeting", maid,
null,
"").SetOnKill(
new Action(meeting.Start));
121 public List<Meeting> list =
new List<Meeting>();