@@ -12,11 +12,9 @@ public abstract class MySqlBaseCreatureAddon : IBaseCreatureAddon
1212
1313 public abstract uint MountCreatureId { get ; set ; }
1414
15- [ Column ( Name = "bytes1" ) ]
16- public uint Bytes1 { get ; set ; }
17-
18- [ Column ( Name = "bytes2" ) ]
19- public uint Bytes2 { get ; set ; }
15+ public abstract uint Bytes1 { get ; }
16+ public abstract byte Sheath { get ; }
17+ public abstract byte PvP { get ; }
2018
2119 [ Column ( Name = "emote" ) ]
2220 public uint Emote { get ; set ; }
@@ -26,14 +24,26 @@ public abstract class MySqlBaseCreatureAddon : IBaseCreatureAddon
2624
2725 [ Column ( Name = "auras" ) ]
2826 public string ? Auras { get ; set ; }
27+ }
2928
30- public byte Sheath => ( byte ) ( Bytes2 & 0xFF ) ;
29+ public abstract class MySqlBaseCreatureAddonTrinity : MySqlBaseCreatureAddon
30+ {
31+ public override uint Bytes1 => StandState ;
32+ public override byte Sheath => sheath ;
33+ public override byte PvP => pvP ;
34+
35+ [ Column ( Name = "StandState" ) ]
36+ public byte StandState { get ; set ; }
3137
32- public byte PvP => ( byte ) ( ( Bytes2 >> 8 ) & 0xFF ) ;
38+ [ Column ( Name = "SheathState" ) ]
39+ public byte sheath { get ; set ; }
40+
41+ [ Column ( Name = "PvPFlags" ) ]
42+ public byte pvP { get ; set ; }
3343}
3444
3545[ Table ( Name = "creature_addon" ) ]
36- public class MySqlCreatureAddon : MySqlBaseCreatureAddon , ICreatureAddon
46+ public class MySqlCreatureAddonWrath : MySqlBaseCreatureAddonTrinity , ICreatureAddon
3747{
3848 [ PrimaryKey ]
3949 [ Identity ]
@@ -48,7 +58,7 @@ public class MySqlCreatureAddon : MySqlBaseCreatureAddon, ICreatureAddon
4858}
4959
5060[ Table ( Name = "creature_template_addon" ) ]
51- public class MySqlCreatureTemplateAddon : MySqlBaseCreatureAddon , ICreatureTemplateAddon
61+ public class MySqlCreatureTemplateAddon : MySqlBaseCreatureAddonTrinity , ICreatureTemplateAddon
5262{
5363 [ PrimaryKey ]
5464 [ Identity ]
@@ -62,9 +72,8 @@ public class MySqlCreatureTemplateAddon : MySqlBaseCreatureAddon, ICreatureTempl
6272 public override uint MountCreatureId { get ; set ; }
6373}
6474
65-
6675[ Table ( Name = "creature_addon" ) ]
67- public class MySqlCreatureAddonCata : MySqlBaseCreatureAddon , ICreatureAddon
76+ public class MySqlCreatureAddonCata : MySqlBaseCreatureAddonTrinity , ICreatureAddon
6877{
6978 [ PrimaryKey ]
7079 [ Identity ]
@@ -78,7 +87,7 @@ public class MySqlCreatureAddonCata : MySqlBaseCreatureAddon, ICreatureAddon
7887}
7988
8089[ Table ( Name = "creature_template_addon" ) ]
81- public class MySqlCreatureTemplateAddonCata : MySqlBaseCreatureAddon , ICreatureTemplateAddon
90+ public class MySqlCreatureTemplateAddonCata : MySqlBaseCreatureAddonTrinity , ICreatureTemplateAddon
8291{
8392 [ PrimaryKey ]
8493 [ Identity ]
@@ -91,6 +100,55 @@ public class MySqlCreatureTemplateAddonCata : MySqlBaseCreatureAddon, ICreatureT
91100 public override uint MountCreatureId { get ; set ; }
92101}
93102
103+ [ Table ( Name = "creature_addon" ) ]
104+ public class MySqlCreatureAddonMaster : MySqlBaseCreatureAddon , ICreatureAddon
105+ {
106+ [ PrimaryKey ]
107+ [ Identity ]
108+ [ Column ( Name = "guid" ) ]
109+ public uint Guid { get ; set ; }
110+
111+ [ Column ( Name = "path_id" ) ]
112+ public override uint PathId { get ; set ; }
113+
114+ [ Column ( Name = "MountCreatureID" ) ]
115+ public override uint MountCreatureId { get ; set ; }
116+
117+ public override uint Bytes1 => bytes1 ;
118+ public override byte Sheath => ( byte ) ( bytes2 & 0xFF ) ;
119+ public override byte PvP => ( byte ) ( ( bytes2 >> 8 ) & 0xFF ) ;
120+
121+ [ Column ( Name = "bytes1" ) ]
122+ public uint bytes1 { get ; set ; }
123+
124+ [ Column ( Name = "bytes2" ) ]
125+ public uint bytes2 { get ; set ; }
126+ }
127+
128+ [ Table ( Name = "creature_template_addon" ) ]
129+ public class MySqlCreatureTemplateAddonMaster : MySqlBaseCreatureAddon , ICreatureTemplateAddon
130+ {
131+ [ PrimaryKey ]
132+ [ Identity ]
133+ [ Column ( Name = "entry" ) ]
134+ public uint Entry { get ; set ; }
135+
136+ [ Column ( Name = "path_id" ) ]
137+ public override uint PathId { get ; set ; }
138+
139+ [ Column ( Name = "MountCreatureID" ) ]
140+ public override uint MountCreatureId { get ; set ; }
141+
142+ public override uint Bytes1 => bytes1 ;
143+ public override byte Sheath => ( byte ) ( bytes2 & 0xFF ) ;
144+ public override byte PvP => ( byte ) ( ( bytes2 >> 8 ) & 0xFF ) ;
145+
146+ [ Column ( Name = "bytes1" ) ]
147+ public uint bytes1 { get ; set ; }
148+
149+ [ Column ( Name = "bytes2" ) ]
150+ public uint bytes2 { get ; set ; }
151+ }
94152
95153[ Table ( Name = "creature_addon" ) ]
96154public class MySqlCreatureAddonAC : MySqlBaseCreatureAddon , ICreatureAddon
@@ -104,6 +162,16 @@ public class MySqlCreatureAddonAC: MySqlBaseCreatureAddon, ICreatureAddon
104162 public override uint PathId { get ; set ; }
105163
106164 public override uint MountCreatureId { get ; set ; }
165+
166+ public override uint Bytes1 => bytes1 ;
167+ public override byte Sheath => ( byte ) ( bytes2 & 0xFF ) ;
168+ public override byte PvP => ( byte ) ( ( bytes2 >> 8 ) & 0xFF ) ;
169+
170+ [ Column ( Name = "bytes1" ) ]
171+ public uint bytes1 { get ; set ; }
172+
173+ [ Column ( Name = "bytes2" ) ]
174+ public uint bytes2 { get ; set ; }
107175}
108176
109177[ Table ( Name = "creature_template_addon" ) ]
@@ -118,4 +186,14 @@ public class MySqlCreatureTemplateAddonAC : MySqlBaseCreatureAddon, ICreatureTem
118186 public override uint PathId { get ; set ; }
119187
120188 public override uint MountCreatureId { get ; set ; }
189+
190+ public override uint Bytes1 => bytes1 ;
191+ public override byte Sheath => ( byte ) ( bytes2 & 0xFF ) ;
192+ public override byte PvP => ( byte ) ( ( bytes2 >> 8 ) & 0xFF ) ;
193+
194+ [ Column ( Name = "bytes1" ) ]
195+ public uint bytes1 { get ; set ; }
196+
197+ [ Column ( Name = "bytes2" ) ]
198+ public uint bytes2 { get ; set ; }
121199}
0 commit comments