forked from KamiliaBlow/RoleplayCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrinityCore.natvis
More file actions
137 lines (125 loc) · 5.6 KB
/
TrinityCore.natvis
File metadata and controls
137 lines (125 loc) · 5.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="utf-8"?>
<!--
TrinityCore debugger visualizers for Visual Studio 2022.
Place in project root — VS auto-discovers .natvis files in CMake folder-mode projects.
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- ==================== ObjectGuid ==================== -->
<Type Name="ObjectGuid">
<DisplayString Condition="_data._Elems[1] == 0 && _data._Elems[0] == 0">Empty</DisplayString>
<DisplayString>[Type={(_data._Elems[1] >> 58) & 0x3F}] Entry={(_data._Elems[1] >> 6) & 0x7FFFFF} Map={(_data._Elems[1] >> 29) & 0x1FFF} Counter={_data._Elems[0] & 0xFFFFFFFFFF}</DisplayString>
<Expand>
<Item Name="[HighGuid type]">(_data._Elems[1] >> 58) & 0x3F</Item>
<Item Name="[RealmId]">(_data._Elems[1] >> 42) & 0xFFFF</Item>
<Item Name="[MapId]">(_data._Elems[1] >> 29) & 0x1FFF</Item>
<Item Name="[Entry]">(_data._Elems[1] >> 6) & 0x7FFFFF</Item>
<Item Name="[SubType]">_data._Elems[1] & 0x3F</Item>
<Item Name="[Counter]">_data._Elems[0] & 0xFFFFFFFFFF</Item>
<Item Name="[Raw High]">_data._Elems[1],X</Item>
<Item Name="[Raw Low]">_data._Elems[0],X</Item>
</Expand>
</Type>
<!-- ==================== Position ==================== -->
<Type Name="Position">
<DisplayString>({m_positionX,g}, {m_positionY,g}, {m_positionZ,g}, O={m_orientation,g})</DisplayString>
<Expand>
<Item Name="X">m_positionX</Item>
<Item Name="Y">m_positionY</Item>
<Item Name="Z">m_positionZ</Item>
<Item Name="Orientation">m_orientation</Item>
</Expand>
</Type>
<!-- ==================== WorldLocation ==================== -->
<Type Name="WorldLocation">
<DisplayString Condition="m_mapId == 0xFFFFFFFF">[No Map] ({m_positionX,g}, {m_positionY,g}, {m_positionZ,g})</DisplayString>
<DisplayString>Map {m_mapId} ({m_positionX,g}, {m_positionY,g}, {m_positionZ,g}, O={m_orientation,g})</DisplayString>
<Expand>
<Item Name="MapId">m_mapId</Item>
<Item Name="X">m_positionX</Item>
<Item Name="Y">m_positionY</Item>
<Item Name="Z">m_positionZ</Item>
<Item Name="Orientation">m_orientation</Item>
</Expand>
</Type>
<!-- ==================== ByteBuffer ==================== -->
<Type Name="ByteBuffer">
<DisplayString>[size={_storage._Mypair._Myval2._Mylast - _storage._Mypair._Myval2._Myfirst} rpos={_rpos} wpos={_wpos} bits={_bitpos}]</DisplayString>
<Expand>
<Item Name="[read pos]">_rpos</Item>
<Item Name="[write pos]">_wpos</Item>
<Item Name="[size]">_storage._Mypair._Myval2._Mylast - _storage._Mypair._Myval2._Myfirst</Item>
<Item Name="[remaining]">_wpos - _rpos</Item>
<Item Name="[bit pos]">_bitpos</Item>
<Item Name="[cur bit val]">_curbitval,X</Item>
<ArrayItems>
<Size>_storage._Mypair._Myval2._Mylast - _storage._Mypair._Myval2._Myfirst</Size>
<ValuePointer>_storage._Mypair._Myval2._Myfirst</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<!-- ==================== MessageBuffer ==================== -->
<Type Name="MessageBuffer">
<DisplayString>[size={_storage._Mypair._Myval2._Mylast - _storage._Mypair._Myval2._Myfirst} rpos={_rpos} wpos={_wpos} active={_wpos - _rpos}]</DisplayString>
<Expand>
<Item Name="[read pos]">_rpos</Item>
<Item Name="[write pos]">_wpos</Item>
<Item Name="[active bytes]">_wpos - _rpos</Item>
<ArrayItems>
<Size>_storage._Mypair._Myval2._Mylast - _storage._Mypair._Myval2._Myfirst</Size>
<ValuePointer>_storage._Mypair._Myval2._Myfirst</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<!-- ==================== EnumFlag<T> ==================== -->
<Type Name="EnumFlag<*>">
<DisplayString>{_value}</DisplayString>
<Expand>
<Item Name="[value]">_value</Item>
<Item Name="[raw]">(unsigned __int64)_value,X</Item>
</Expand>
</Type>
<!-- ==================== FlagsArray<T,N> ==================== -->
<Type Name="FlagsArray<*,*>">
<DisplayString>[{$T2} parts]</DisplayString>
<Expand>
<IndexListItems>
<Size>$T2</Size>
<ValueNode>_storage._Elems[$i],X</ValueNode>
</IndexListItems>
</Expand>
</Type>
<!-- ==================== flag128 ==================== -->
<Type Name="flag128">
<DisplayString>[{_storage._Elems[0],X} {_storage._Elems[1],X} {_storage._Elems[2],X} {_storage._Elems[3],X}]</DisplayString>
<Expand>
<Item Name="[part1]">_storage._Elems[0],X</Item>
<Item Name="[part2]">_storage._Elems[1],X</Item>
<Item Name="[part3]">_storage._Elems[2],X</Item>
<Item Name="[part4]">_storage._Elems[3],X</Item>
</Expand>
</Type>
<!-- ==================== EventMap ==================== -->
<Type Name="EventMap">
<DisplayString>[events={_eventMap._Mysize} phase={_phase} last={_lastEvent}]</DisplayString>
<Expand>
<Item Name="[phase]">_phase</Item>
<Item Name="[last event]">_lastEvent</Item>
<Item Name="[event count]">_eventMap._Mysize</Item>
<ExpandedItem>_eventMap</ExpandedItem>
</Expand>
</Type>
<!-- ==================== unique_trackable_ptr<T> ==================== -->
<Type Name="Trinity::unique_trackable_ptr<*>">
<DisplayString>{_ptr}</DisplayString>
<Expand>
<ExpandedItem>_ptr</ExpandedItem>
</Expand>
</Type>
<!-- ==================== unique_weak_ptr<T> ==================== -->
<Type Name="Trinity::unique_weak_ptr<*>">
<DisplayString>{_ptr}</DisplayString>
<Expand>
<ExpandedItem>_ptr</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>