Пример #1
0
        public static LayeredSpell ReadLayeredSpell(this BinaryReader reader)
        {
            var layeredSpell = new LayeredSpell();

            layeredSpell.SpellId = reader.ReadUInt16();
            layeredSpell.Layer   = reader.ReadUInt16();

            return(layeredSpell);
        }
Пример #2
0
 public static void Write(this BinaryWriter writer, LayeredSpell spell)
 {
     writer.Write(spell.SpellId);
     writer.Write(spell.Layer);
 }
Пример #3
0
 public Shortcut(uint objectId, uint index)
 {
     Index    = index;
     ObjectId = objectId;
     Spell    = new LayeredSpell();
 }
Пример #4
0
 public Shortcut(BiotaPropertiesShortcutBar shortcut)
 {
     Index    = shortcut.ShortcutBarIndex;
     ObjectId = shortcut.ShortcutObjectId;
     Spell    = new LayeredSpell();
 }
Пример #5
0
 public Shortcut(CharacterPropertiesShortcutBar shortcut)
 {
     Index    = shortcut.ShortcutBarIndex - 1;
     ObjectId = shortcut.ShortcutObjectId;
     Spell    = new LayeredSpell();
 }