public virtual void Deserialize(BigEndianReader reader) { JobId = reader.ReadSByte(); var limit = reader.ReadUShort(); Skills = new SkillActionDescription[limit]; for (int i = 0; i < limit; i++) { Skills[i] = Types.ProtocolTypeManager.GetInstance<SkillActionDescription>(reader.ReadShort()); Skills[i].Deserialize(reader); } }
public JobDescription(sbyte jobId, SkillActionDescription[] skills) { JobId = jobId; Skills = skills; }