1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

fix actionscript export macro

This commit is contained in:
GokuWeedLord 2017-12-10 21:43:54 +11:00
parent 7e6136e48a
commit e5f7c2c9d3
2 changed files with 4 additions and 4 deletions

View file

@ -1,9 +1,9 @@
//#include "../ScriptObject.h" //#include "../ScriptObject.h"
// //
//class AbilityScript3 : public AbilityScript //class ActionScript3 : public ActionScript
//{ //{
//public: //public:
// AbilityScript3() : AbilityScript( "AbilityScript3", 3 ) // ActionScript3() : ActionScript( "AbilityScript3", 3 )
// {} // {}
// //
// virtual void onCastFinish( Core::Entity::Player player, Core::Entity::ActorPtr targetActor ) // virtual void onCastFinish( Core::Entity::Player player, Core::Entity::ActorPtr targetActor )
@ -12,4 +12,4 @@
// } // }
//}; //};
// //
//EXPORT_ABILITYSCRIPT( AbilityScript3 ) //EXPORT_ACTIONSCRIPT( ActionScript3 )

View file

@ -17,7 +17,7 @@ extern "C" EXPORT base* get##base() \
{ return static_cast< base* >( new type ); } { return static_cast< base* >( new type ); }
#define EXPORT_STATUSEFFECTSCRIPT( type ) EXPORT_SCRIPTOBJECT( type, StatusEffectScript ) #define EXPORT_STATUSEFFECTSCRIPT( type ) EXPORT_SCRIPTOBJECT( type, StatusEffectScript )
#define EXPORT_ABILITYSCRIPT( type ) EXPORT_SCRIPTOBJECT( type, AbilityScript ) #define EXPORT_ACTIONSCRIPT( type ) EXPORT_SCRIPTOBJECT( type, ActionScript )
#define EXPORT_QUESTSCRIPT( type ) EXPORT_SCRIPTOBJECT( type, QuestScript ) #define EXPORT_QUESTSCRIPT( type ) EXPORT_SCRIPTOBJECT( type, QuestScript )
#define EXPORT_BATTLENPCSCRIPT( type ) EXPORT_SCRIPTOBJECT( type, BattleNpcScript ) #define EXPORT_BATTLENPCSCRIPT( type ) EXPORT_SCRIPTOBJECT( type, BattleNpcScript )
#define EXPORT_ZONESCRIPT( type ) EXPORT_SCRIPTOBJECT( type, ZoneScript ) #define EXPORT_ZONESCRIPT( type ) EXPORT_SCRIPTOBJECT( type, ZoneScript )