[9830] Implement taxi/transport event scripts support.

This commit is contained in:
VladimirMangos 2010-05-03 13:48:44 +04:00
parent e54c919adb
commit 3f5eccd8a9
9 changed files with 77 additions and 32 deletions

View file

@ -503,6 +503,17 @@ struct GameObjectInfo
default: return 0;
}
}
uint32 GetEventScriptId() const
{
switch(type)
{
case GAMEOBJECT_TYPE_GOOBER: return goober.eventId;
case GAMEOBJECT_TYPE_CHEST: return chest.eventId;
case GAMEOBJECT_TYPE_CAMERA: return camera.eventID;
default: return 0;
}
}
};
// GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform