示例#1
0
 public TalkToSend(Talk talk)
 {
     Idx = talk.Idx;
     Day = talk.Day;
     Agent = talk.Agent.AgentIdx;
     Content = talk.Content;
 }
示例#2
0
 public void AddWhisper(Agent agent, Talk whisper)
 {
     WhisperList.Add(whisper);
 }
示例#3
0
 /// <summary>
 /// Check is talk after lastTalk.
 /// <para>If it is same, return false.</para>
 /// </summary>
 /// <param name="talk"></param>
 /// <param name="lastTalk"></param>
 /// <returns></returns>
 private bool IsAfter(TalkToSend talk, Talk lastTalk)
 {
     if (lastTalk != null)
     {
         if (talk.Day < lastTalk.Day)
         {
             return false;
         }
         if (talk.Day == lastTalk.Day && talk.Idx <= lastTalk.Idx)
         {
             return false;
         }
     }
     return true;
 }
示例#4
0
 public void AddTalk(Agent agent, Talk talk)
 {
     TalkList.Add(talk);
 }