Scripts/DB_Scripts: massive cleanup of SCRIPT_COMMAND_* related staff

* add union into ScriptInfo structure (thanks NoFantasy for the idea);
* move scripts methods from Map.cpp to new file MapScripts.cpp;
* remove magic numbers and introduce eScriptFlags enumeration.

It's just a beginning and more changes to come. Stay tuned!

--HG--
branch : trunk
This commit is contained in:
azazel
2010-09-22 18:13:57 +06:00
parent 562a8c272d
commit eae0e5c822
6 changed files with 1295 additions and 1071 deletions
+8
View File
@@ -53,6 +53,14 @@ class Battleground;
class MapInstanced;
class InstanceMap;
struct ScriptAction
{
uint64 sourceGUID;
uint64 targetGUID;
uint64 ownerGUID; // owner of source if source is item
ScriptInfo const* script; // pointer to static script data
};
//******************************************
// Map file format defines
//******************************************