Core/GameObject: Create enum GameObjectDynamicLowFlags instead of using hard

coded flags.
Author: NoFantasy

--HG--
branch : trunk
This commit is contained in:
runningnak3d
2010-10-08 18:38:58 -06:00
parent 86dbbe4afe
commit a667faaa94
2 changed files with 13 additions and 5 deletions
+5 -5
View File
@@ -683,23 +683,23 @@ void Object::_BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask
{ {
case GAMEOBJECT_TYPE_CHEST: case GAMEOBJECT_TYPE_CHEST:
if (target->isGameMaster()) if (target->isGameMaster())
*data << uint16(1); *data << uint16(GO_DYNFLAG_LO_ACTIVATE);
else else
*data << uint16(9); *data << uint16(GO_DYNFLAG_LO_ACTIVATE | GO_DYNFLAG_LO_SPARKLE);
*data << uint16(-1); *data << uint16(-1);
break; break;
case GAMEOBJECT_TYPE_GENERIC: case GAMEOBJECT_TYPE_GENERIC:
if (target->isGameMaster()) if (target->isGameMaster())
*data << uint16(0); *data << uint16(0);
else else
*data << uint16(8); *data << uint16(GO_DYNFLAG_LO_SPARKLE);
*data << uint16(-1); *data << uint16(-1);
break; break;
case GAMEOBJECT_TYPE_GOOBER: case GAMEOBJECT_TYPE_GOOBER:
if (target->isGameMaster()) if (target->isGameMaster())
*data << uint16(1); *data << uint16(GO_DYNFLAG_LO_ACTIVATE);
else else
*data << uint16(9); *data << uint16(GO_DYNFLAG_LO_ACTIVATE | GO_DYNFLAG_LO_SPARKLE);
*data << uint16(-1); *data << uint16(-1);
break; break;
default: default:
@@ -1312,6 +1312,14 @@ enum GameObjectFlags
GO_FLAG_DESTROYED = 0x00000400, GO_FLAG_DESTROYED = 0x00000400,
}; };
enum GameObjectDynamicLowFlags
{
GO_DYNFLAG_LO_ACTIVATE = 0x01, // enables interaction with GO
GO_DYNFLAG_LO_ANIMATE = 0x02, // possibly more distinct animation of GO
GO_DYNFLAG_LO_NO_INTERACT = 0x04, // appears to disable interaction (not fully verified)
GO_DYNFLAG_LO_SPARKLE = 0x08, // makes GO sparkle
}
enum TextEmotes enum TextEmotes
{ {
TEXTEMOTE_AGREE = 1, TEXTEMOTE_AGREE = 1,