mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/GameObjects: Changed gameobject artkit type to uint32
This commit is contained in:
@@ -1778,7 +1778,7 @@ void GameObject::ActivateObject(GameObjectActions action, int32 param, WorldObje
|
||||
}
|
||||
}
|
||||
|
||||
void GameObject::SetGoArtKit(uint8 kit)
|
||||
void GameObject::SetGoArtKit(uint32 kit)
|
||||
{
|
||||
SetUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::ArtKit), kit);
|
||||
GameObjectData* data = const_cast<GameObjectData*>(sObjectMgr->GetGameObjectData(m_spawnId));
|
||||
@@ -1786,7 +1786,7 @@ void GameObject::SetGoArtKit(uint8 kit)
|
||||
data->artKit = kit;
|
||||
}
|
||||
|
||||
void GameObject::SetGoArtKit(uint8 artkit, GameObject* go, ObjectGuid::LowType lowguid)
|
||||
void GameObject::SetGoArtKit(uint32 artkit, GameObject* go, ObjectGuid::LowType lowguid)
|
||||
{
|
||||
GameObjectData const* data = nullptr;
|
||||
if (go)
|
||||
|
||||
@@ -211,11 +211,11 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject>
|
||||
void SetGoState(GOState state);
|
||||
virtual uint32 GetTransportPeriod() const;
|
||||
void SetTransportState(GOState state, uint32 stopFrame = 0);
|
||||
uint8 GetGoArtKit() const { return m_gameObjectData->ArtKit; }
|
||||
void SetGoArtKit(uint8 artkit);
|
||||
uint32 GetGoArtKit() const { return m_gameObjectData->ArtKit; }
|
||||
void SetGoArtKit(uint32 artkit);
|
||||
uint8 GetGoAnimProgress() const { return m_gameObjectData->PercentHealth; }
|
||||
void SetGoAnimProgress(uint8 animprogress) { SetUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::PercentHealth), animprogress); }
|
||||
static void SetGoArtKit(uint8 artkit, GameObject* go, ObjectGuid::LowType lowguid = UI64LIT(0));
|
||||
static void SetGoArtKit(uint32 artkit, GameObject* go, ObjectGuid::LowType lowguid = UI64LIT(0));
|
||||
|
||||
void EnableCollision(bool enable);
|
||||
|
||||
|
||||
@@ -1115,7 +1115,7 @@ struct GameObjectData : public SpawnData
|
||||
QuaternionData rotation;
|
||||
uint32 animprogress = 0;
|
||||
GOState goState = GO_STATE_ACTIVE;
|
||||
uint8 artKit = 0;
|
||||
uint32 artKit = 0;
|
||||
};
|
||||
|
||||
enum class GameObjectActions : uint32
|
||||
|
||||
Reference in New Issue
Block a user