Core/Objects: Implemented vignettes

Port From (https://github.com/TrinityCore/TrinityCore/commit/fccf6fb72b60b08dfbe6d5fb17fba55239944fca)
This commit is contained in:
hondacrx
2024-03-13 21:09:46 -04:00
parent 2c008b2b70
commit 4b9b81c7e2
21 changed files with 573 additions and 10 deletions
@@ -744,7 +744,25 @@ namespace Game.Entities
GameObjectTypes.AuraGenerator => AuraGenerator.serverOnly,
_ => 0,
};
public uint GetSpawnVignette() => type switch
{
GameObjectTypes.Chest => Chest.SpawnVignette,
GameObjectTypes.Goober => Goober.SpawnVignette,
GameObjectTypes.NewFlag => NewFlag.SpawnVignette,
GameObjectTypes.NewFlagDrop => NewFlagDrop.SpawnVignette,
GameObjectTypes.CapturePoint => CapturePoint.SpawnVignette,
GameObjectTypes.GatheringNode => GatheringNode.SpawnVignette,
_ => 0
};
public bool ClearObjectVignetteonOpening() => type switch
{
GameObjectTypes.GatheringNode => GatheringNode.ClearObjectVignetteonOpening != 0,
_ => false
};
public uint GetSpellFocusType()
{
switch (type)
@@ -776,7 +794,7 @@ namespace Game.Entities
GameObjectTypes.SpellFocus or GameObjectTypes.Multi or GameObjectTypes.SiegeableMulti => false,
_ => true
};
public void InitializeQueryData()
{
QueryData = new QueryGameObjectResponse();