public override void Init(StoC_0x7B_TrainerWindow pak) { m_skills = new RealmAbility[pak.Count]; for (int i = 0; i < pak.Count; i++) { RealmAbility skill = new RealmAbility(); skill.level = pak.ReadByte(); skill.minLevel = pak.ReadByte(); skill.type = pak.ReadByte(); skill.cost = pak.ReadByte(); if (skill.type == 9) { skill.unk1_1112 = pak.ReadByte(); skill.unk2_1112 = pak.ReadByte(); skill.unk3_1112 = pak.ReadShort(); skill.unk2 = pak.ReadShort(); } if ((skill.type == (byte)StoC_0x16_VariousUpdate.eSkillPage.AbilitiesSpell)) { skill.unk2 = pak.ReadShort(); } skill.unk3 = pak.ReadShort(); skill.name = pak.ReadPascalString(); m_skills[i] = skill; } }
public override void Init(StoC_0x7B_TrainerWindow pak) { countRows = pak.ReadByte(); m_skills = new ChampionSkill[countRows]; for (int i = 0; i < countRows; i++) { ChampionSkill skill = new ChampionSkill(); skill.index = pak.ReadByte(); skill.countSpells = pak.ReadByte(); skill.m_spells = new ChampionSpell[skill.countSpells]; for (int index = 0; index < skill.countSpells; index++) { ChampionSpell spell = new ChampionSpell(); spell.index = pak.ReadByte(); spell.type = pak.ReadByte(); spell.icon = pak.ReadShortLowEndian(); spell.name = pak.ReadPascalString(); spell.aviability = pak.ReadByte(); spell.stickedSkillsCount = pak.ReadByte(); if (spell.stickedSkillsCount > 0) { spell.stickedSkills = new byte[spell.stickedSkillsCount]; } for (int k = 0; k < spell.stickedSkillsCount; k++) { spell.stickedSkills[k] = pak.ReadByte(); } skill.m_spells[index] = spell; } m_skills[i] = skill; } }
public override void Init(StoC_0x7B_TrainerWindow pak) { m_skills = new RealmAbility[pak.Count]; for (int i = 0; i < pak.Count; i++) { RealmAbility skill = new RealmAbility(); skill.level = pak.ReadByte(); skill.minLevel = pak.ReadByte(); skill.type = pak.ReadByte(); skill.cost = pak.ReadByte(); if (skill.type == 9) { skill.unk1_1112 = pak.ReadByte(); skill.unk2_1112 = pak.ReadByte(); skill.unk3_1112 = pak.ReadShort(); skill.unk2 = pak.ReadShort(); } if ((skill.type == (byte)StoC_0x16_VariousUpdate.eSkillPage.AbilitiesSpell)) { skill.unk2 = pak.ReadShort(); } skill.unk3 = pak.ReadShort(); skill.name = pak.ReadPascalString(); m_skills[i] = skill; } }
public override void Init(StoC_0x7B_TrainerWindow pak) { startIndex = pak.ReadByte(); names = new string[pak.count]; for (int i = 0; i < pak.count; i++) { names[i] = pak.ReadPascalString(); } }
public override void Init(StoC_0x7B_TrainerWindow pak) { m_skills = new Skill[pak.count]; for (int i = 0; i < pak.count; i++) { Skill skill = new Skill(); skill.index = pak.ReadByte(); skill.level = pak.ReadByte(); skill.cost = pak.ReadByte(); skill.name = pak.ReadPascalString(); m_skills[i] = skill; } }
public override void Init(StoC_0x7B_TrainerWindow pak) { m_skills = new Skill[pak.count]; for (int i = 0; i < pak.count; i++) { Skill skill = new Skill(); skill.index = pak.ReadByte(); skill.level = pak.ReadByte(); skill.cost = pak.ReadByte(); skill.name = pak.ReadPascalString(); m_skills[i] = skill; } }
public override void Init(StoC_0x7B_TrainerWindow pak) { startIndex = pak.ReadByte(); names = new string[pak.count]; for (int i = 0; i < pak.count; i++) { names[i] = pak.ReadPascalString(); } }
public override void Init(StoC_0x7B_TrainerWindow pak) { countRows = pak.ReadByte(); m_skills = new ChampionSkill[countRows]; for (int i = 0; i < countRows; i++) { ChampionSkill skill = new ChampionSkill(); skill.index = pak.ReadByte(); skill.countSpells = pak.ReadByte(); skill.m_spells = new ChampionSpell[skill.countSpells]; for (int index = 0; index < skill.countSpells; index++) { ChampionSpell spell = new ChampionSpell(); spell.index = pak.ReadByte(); spell.type = pak.ReadByte(); spell.icon = pak.ReadShortLowEndian(); spell.name = pak.ReadPascalString(); spell.aviability = pak.ReadByte(); spell.stickedSkillsCount = pak.ReadByte(); if (spell.stickedSkillsCount > 0) spell.stickedSkills = new byte[spell.stickedSkillsCount]; for (int k = 0; k < spell.stickedSkillsCount; k++) { spell.stickedSkills[k] = pak.ReadByte(); } skill.m_spells[index] = spell; } m_skills[i] = skill; } }