public static LayeredSpell ReadLayeredSpell(this BinaryReader reader) { var layeredSpell = new LayeredSpell(); layeredSpell.SpellId = reader.ReadUInt16(); layeredSpell.Layer = reader.ReadUInt16(); return(layeredSpell); }
public static void Write(this BinaryWriter writer, LayeredSpell spell) { writer.Write(spell.SpellId); writer.Write(spell.Layer); }
public Shortcut(uint objectId, uint index) { Index = index; ObjectId = objectId; Spell = new LayeredSpell(); }
public Shortcut(BiotaPropertiesShortcutBar shortcut) { Index = shortcut.ShortcutBarIndex; ObjectId = shortcut.ShortcutObjectId; Spell = new LayeredSpell(); }
public Shortcut(CharacterPropertiesShortcutBar shortcut) { Index = shortcut.ShortcutBarIndex - 1; ObjectId = shortcut.ShortcutObjectId; Spell = new LayeredSpell(); }