Exemplo n.º 1
0
 public InteractiveElement(int elementId, int elementTypeId, InteractiveElementSkill[] enabledSkills, InteractiveElementSkill[] disabledSkills)
 {
     ElementId = elementId;
     ElementTypeId = elementTypeId;
     EnabledSkills = enabledSkills;
     DisabledSkills = disabledSkills;
 }
Exemplo n.º 2
0
 public virtual void Deserialize(BigEndianReader reader)
 {
     ElementId = reader.ReadInt();
     ElementTypeId = reader.ReadInt();
     var limit = reader.ReadUShort();
     EnabledSkills = new InteractiveElementSkill[limit];
     for (int i = 0; i < limit; i++)
     {
         EnabledSkills[i] = Types.ProtocolTypeManager.GetInstance<InteractiveElementSkill>(reader.ReadShort());
         EnabledSkills[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     DisabledSkills = new InteractiveElementSkill[limit];
     for (int i = 0; i < limit; i++)
     {
         DisabledSkills[i] = Types.ProtocolTypeManager.GetInstance<InteractiveElementSkill>(reader.ReadShort());
         DisabledSkills[i].Deserialize(reader);
     }
 }
 public InteractiveElementWithAgeBonus(int elementId, int elementTypeId, InteractiveElementSkill[] enabledSkills, InteractiveElementSkill[] disabledSkills, short ageBonus)
     : base(elementId, elementTypeId, enabledSkills, disabledSkills)
 {
     AgeBonus = ageBonus;
 }