Subversion Repositories WoWGM

Rev

Rev 37 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37 Rev 38
Line 8... Line 8...
8
*
8
*
9
***/
9
***/
10
 
10
 
11
 
11
 
12
typedef enum {
12
typedef enum {
13
    TYPEID_OBJECT           = 0x0,
13
    TYPE_OBJECT = 0x1,
-
 
14
    HIER_TYPE_OBJECT = 0x1,
14
    TYPEID_ITEM             = 0x1,
15
    TYPE_ITEM = 0x2,
-
 
16
    HIER_TYPE_ITEM = 0x3,
15
    TYPEID_CONTAINER        = 0x2,
17
    TYPE_CONTAINER = 0x4,
-
 
18
    HIER_TYPE_CONTAINER = 0x7,
16
    TYPEID_UNIT             = 0x3,
19
    TYPE_UNIT = 0x8,
-
 
20
    HIER_TYPE_UNIT = 0x9,
17
    TYPEID_PLAYER           = 0x4,
21
    TYPE_PLAYER = 0x10,
-
 
22
    HIER_TYPE_PLAYER = 0x19,
18
    TYPEID_GAMEOBJECT       = 0x5,
23
    TYPE_GAMEOBJECT = 0x20,
-
 
24
    HIER_TYPE_GAMEOBJECT = 0x21,
19
    TYPEID_DYNAMICOBJECT    = 0x6,
25
    TYPE_DYNAMICOBJECT = 0x40,
-
 
26
    HIER_TYPE_DYNAMICOBJECT = 0x41,
20
    TYPEID_CORPSE           = 0x7,
27
    TYPE_CORPSE = 0x80,
-
 
28
    HIER_TYPE_CORPSE = 0x81,
-
 
29
    TYPE_AIGROUP = 0x100,
-
 
30
    HIER_TYPE_AIGROUP = 0x101,
-
 
31
    TYPE_AREATRIGGER = 0x200,
-
 
32
    HIER_TYPE_AREATRIGGER = 0x201,
-
 
33
} OBJECT_TYPE;
-
 
34
 
-
 
35
typedef enum {
-
 
36
    ID_OBJECT = 0x0,
-
 
37
    ID_ITEM = 0x1,
-
 
38
    ID_CONTAINER = 0x2,
-
 
39
    ID_UNIT = 0x3,
-
 
40
    ID_PLAYER = 0x4,
-
 
41
    ID_GAMEOBJECT = 0x5,
-
 
42
    ID_DYNAMICOBJECT = 0x6,
-
 
43
    ID_CORPSE = 0x7,
21
    NUM_TYPEIDS             = 0x8
44
    NUM_CLIENT_OBJECT_TYPES = 0x8,
-
 
45
    ID_AIGROUP = 0x8,
-
 
46
    ID_AREATRIGGER = 0x9,
-
 
47
    NUM_OBJECT_TYPES = 0xA,
22
} TYPEID;
48
} OBJECT_TYPE_ID;
23
 
49
 
24
// TODO:
50
// TODO:
25
struct C3Vector {
51
struct C3Vector {
26
    float x, y, z;
52
    float x, y, z;
27
};
53
};
Line 96... Line 122...
96
    virtual float GetSpeed(); // 62
122
    virtual float GetSpeed(); // 62
97
    virtual void PlaySpellVisualKit_PlayAnims(); // 63 PlaySpellVisualKit_PlayAnims(SpellRec  const*,SpellVisualKitRec  const*,SPELL_VISUAL_KIT_TYPE,C3Vector  const*,int,int,ulong long,ulong,SpellVisualRec  const*,uint,int)
123
    virtual void PlaySpellVisualKit_PlayAnims(); // 63 PlaySpellVisualKit_PlayAnims(SpellRec  const*,SpellVisualKitRec  const*,SPELL_VISUAL_KIT_TYPE,C3Vector  const*,int,int,ulong long,ulong,SpellVisualRec  const*,uint,int)
98
    virtual void PlaySpellVisualKit_HandleWeapons(); // 64 PlaySpellVisualKit_HandleWeapons(SpellRec  const*,SpellVisualKitRec  const*,C3Vector  const*,ulong long,ulong,uint,void (*)(CM2Model *,uint,uint,int,uint,ulong long,int),int *,uint,int)
124
    virtual void PlaySpellVisualKit_HandleWeapons(); // 64 PlaySpellVisualKit_HandleWeapons(SpellRec  const*,SpellVisualKitRec  const*,C3Vector  const*,ulong long,ulong,uint,void (*)(CM2Model *,uint,uint,int,uint,ulong long,int),int *,uint,int)
99
    virtual void PlaySpellVisualKit_DelayLightningEffects(); // 65 PlaySpellVisualKit_DelayLightningEffects(SpellRec  const*,SpellVisualKitRec  const*,SPELL_VISUAL_KIT_TYPE,C3Vector  const*,ulong long,int,int,int,int,uint,SpellVisualRec  const*,uint,int)
125
    virtual void PlaySpellVisualKit_DelayLightningEffects(); // 65 PlaySpellVisualKit_DelayLightningEffects(SpellRec  const*,SpellVisualKitRec  const*,SPELL_VISUAL_KIT_TYPE,C3Vector  const*,ulong long,int,int,int,int,uint,SpellVisualRec  const*,uint,int)
100
 
126
 
101
    TYPEID GetTypeID() const { return m_typeID; }
127
    OBJECT_TYPE_ID GetTypeID() const { return m_typeID; }
102
private:
128
private:
103
    // void* vtable;        // 0x0
129
    // void* vtable;        // 0x0
104
    uint32 m_field4;        // 0x4
130
    uint32 m_field4;        // 0x4
105
    uint32 *m_data;         // 0x8
131
    uint32 *m_data;         // 0x8
106
    uint32 m_fieldC;        // 0xC
132
    uint32 m_fieldC;        // 0xC
107
    uint32 m_field10;       // 0x10
133
    uint32 m_field10;       // 0x10
108
    TYPEID m_typeID;        // 0x14
134
    OBJECT_TYPE_ID m_typeID;// 0x14
109
    uint32 m_field18[46];   // 0x18
135
    uint32 m_field18[46];   // 0x18
110
};
136
};