Mercurial > mm7
comparison CastSpellInfo.h @ 1519:4c787c28ddce
Clean CastSpellInfo. (2)
author | yoctozepto |
---|---|
date | Wed, 04 Sep 2013 16:00:15 +0200 |
parents | c3da3c2985b8 |
children | 70b63fe6587c |
comparison
equal
deleted
inserted
replaced
1518:091c5eb46a0e | 1519:4c787c28ddce |
---|---|
1 #pragma once | 1 #pragma once |
2 | |
3 #include <cstdint> | |
4 | |
2 #include <array> | 5 #include <array> |
3 | 6 |
4 namespace CastSpellInfoHelpers | 7 namespace CastSpellInfoHelpers |
5 { | 8 { |
6 void _427D48(); | 9 void _427D48(); |
12 struct CastSpellInfo | 15 struct CastSpellInfo |
13 { | 16 { |
14 //----- (00426987) -------------------------------------------------------- | 17 //----- (00426987) -------------------------------------------------------- |
15 inline CastSpellInfo() | 18 inline CastSpellInfo() |
16 { | 19 { |
17 field_8 = 0; | 20 memset(this, 0, sizeof(this)); |
18 spellnum = 0; | |
19 field_6 = 0; | |
20 uPlayerID_2 = 0; | |
21 uPlayerID = 0; | |
22 sound_id = 0; | |
23 } | 21 } |
24 | 22 |
25 struct GUIWindow *GetCastSpellInInventoryWindow(); | 23 struct GUIWindow *GetCastSpellInInventoryWindow(); |
26 | 24 |
27 __int16 spellnum; | 25 uint16_t uSpellID; |
28 unsigned __int16 uPlayerID; | 26 uint16_t uPlayerID; |
29 __int16 uPlayerID_2; | 27 uint16_t uPlayerID_2; |
30 __int16 field_6; | 28 __int16 field_6; |
31 __int16 field_8; | 29 uint16_t uFlags; |
32 __int16 forced_spell_skill_level; | 30 __int16 forced_spell_skill_level; |
33 int spell_target_pid; | 31 int spell_target_pid; |
34 int sound_id; | 32 int sound_id; |
35 }; | 33 }; |
36 #pragma pack(pop) | 34 #pragma pack(pop) |