public TalkToSend(Talk talk) { Idx = talk.Idx; Day = talk.Day; Agent = talk.Agent.AgentIdx; Content = talk.Content; }
public void AddWhisper(Agent agent, Talk whisper) { WhisperList.Add(whisper); }
/// <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; }
public void AddTalk(Agent agent, Talk talk) { TalkList.Add(talk); }