Example #1
0
 public void SetJob(JobDescription job, int? level = null)
 {
     JobTemplate = ObjectDataManager.Instance.Get<Protocol.Data.Job>(job.jobId);
     Skills = job.skills;
     if (Skills == null)
         Skills = new SkillActionDescription[0]; // make sure we have a valid array in all cases
     _craftSkills = null;
     _collectSkills = null;
     if (level != null)
         Level = level.Value;
 }
Example #2
0
 public Job(PlayedCharacter owner, JobDescription job)
 {
     Owner = owner;
     SetJob(job);
 }