예제 #1
0
 public void Update(JobDescriptionMessage msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     Jobs = msg.jobsDescription.Select(entry => new Jobs.Job(this, entry)).ToList();
 }
예제 #2
0
 public void Update(JobDescriptionMessage msg)
 {
     if (msg == null) throw new ArgumentNullException("msg");
     m_jobs.Clear();
     foreach (var job in msg.jobsDescription)
     {
         m_jobs.Add(new Job(this, job));
     }
 }
예제 #3
0
 public static void HandleJobDescriptionMessage(Bot bot, JobDescriptionMessage message)
 {
   bot.Character.Update(message);
 }