annotate Engine/Spells/CastSpellInfo.h @ 2542:bacf9809126a

.
author a.parshin
date Sun, 10 May 2015 02:04:52 +0200
parents 68cdef6879a0
children 30eb6dcac768
rev   line source
2499
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
1 #pragma once
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
2
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
3 #include <cstdint>
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
4
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
5 #include <array>
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
6
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
7 namespace CastSpellInfoHelpers
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
8 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
9 void _427D48();
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
10 void _427E01_cast_spell();
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
11 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
12
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
13 /* 271 */
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
14 #pragma pack(push, 1)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
15 struct CastSpellInfo
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
16 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
17 //----- (00426987) --------------------------------------------------------
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
18 inline CastSpellInfo()
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
19 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
20 memset(this, 0, sizeof(*this));
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
21 }
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
22
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
23 struct GUIWindow *GetCastSpellInInventoryWindow();
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
24
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
25 uint16_t uSpellID;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
26 uint16_t uPlayerID;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
27 uint16_t uPlayerID_2;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
28 __int16 field_6;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
29 uint16_t uFlags;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
30 __int16 forced_spell_skill_level;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
31 int spell_target_pid;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
32 int sound_id;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
33 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
34 #pragma pack(pop)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
35
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
36 void _42777D_CastSpell_UseWand_ShootArrow(int a1, unsigned int uPlayerID, unsigned int a4, __int16 a5, int a6);