1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-24 21:57:44 +00:00

move all scripts over, adds EXPOSE_SCRIPT( classname ) to each script

This commit is contained in:
NotAdam 2019-02-20 17:38:03 +11:00
parent 16fa522ca9
commit 966f51b76a
339 changed files with 2101 additions and 1457 deletions

View file

@ -15,4 +15,6 @@ public:
{ {
player.returnToHomepoint(); player.returnToHomepoint();
} }
}; };
EXPOSE_SCRIPT( ActionReturn6 );

View file

@ -14,4 +14,6 @@ public:
{ {
player.addStatusEffectByIdIfNotExist( 50, 20000, player, 30 ); player.addStatusEffectByIdIfNotExist( 50, 20000, player, 30 );
} }
}; };
EXPOSE_SCRIPT( ActionSprint3 );

View file

@ -1,12 +1,12 @@
#include <Script/NativeScriptApi.h> #include <Script/NativeScriptApi.h>
#include "ActionReturn6.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptActionReturn6();
#include "ActionSprint3.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptActionSprint3();
const Sapphire::ScriptAPI::ScriptObject* ptrs[] = const Sapphire::ScriptAPI::ScriptObject* ptrs[] =
{ {
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new ActionReturn6 ), makeScriptActionReturn6(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new ActionSprint3 ), makeScriptActionSprint3(),
nullptr nullptr
}; };

View file

@ -39,4 +39,7 @@ public:
{ {
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefCutSceneReplay );

View file

@ -59,4 +59,6 @@ public:
{ {
Scene00100( player ); Scene00100( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefInnBed );

View file

@ -61,4 +61,6 @@ public:
{ {
Scene00001( player ); Scene00001( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefLinkShell );

View file

@ -21,4 +21,6 @@ public:
{ {
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefMarketBoardGridania );

View file

@ -24,4 +24,6 @@ public:
{ {
} ); } );
} }
}; };
EXPOSE_SCRIPT( CmnDefMogLetter );

View file

@ -21,4 +21,6 @@ public:
{ {
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefNpcRepair );

View file

@ -24,4 +24,6 @@ public:
{ {
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefWeatherForeCast );

View file

@ -21,4 +21,6 @@ public:
{ {
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( ComDefMobHuntBoard );

View file

@ -55,4 +55,6 @@ private:
{ {
player.playGilShop( result.eventId, SCENE_FLAGS, std::bind( &GilShop::shopInteractionCallback, this, std::placeholders::_1, std::placeholders::_2 ) ); player.playGilShop( result.eventId, SCENE_FLAGS, std::bind( &GilShop::shopInteractionCallback, this, std::placeholders::_1, std::placeholders::_2 ) );
} }
}; };
EXPOSE_SCRIPT( GilShop );

View file

@ -21,4 +21,6 @@ public:
{ {
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( HouFurOrchestrion );

View file

@ -1,42 +1,42 @@
#include <Script/NativeScriptApi.h> #include <Script/NativeScriptApi.h>
#include "CmnDefCutSceneReplay.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefCutSceneReplay();
#include "CmnDefInnBed.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefInnBed();
#include "CmnDefLinkShell.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefLinkShell();
#include "CmnDefMarketBoardGridania.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefMarketBoardGridania();
#include "CmnDefMogLetter.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefMogLetter();
#include "CmnDefNpcRepair.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefNpcRepair();
#include "CmnDefWeatherForeCast.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefWeatherForeCast();
#include "ComDefMobHuntBoard.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptComDefMobHuntBoard();
#include "GilShop.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptGilShop();
#include "HouFurOrchestrion.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptHouFurOrchestrion();
#include "aethernet/Aetheryte.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptAetheryte();
#include "aethernet/HousingAethernet.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptHousingAethernet();
#include "eobj/HousingEstateEntrance.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptHousingEstateEntrance();
#include "housing/CmnDefHousingPersonalRoomEntrance.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefHousingPersonalRoomEntrance();
#include "housing/CmnDefHousingSignboard.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptCmnDefHousingSignboard();
#include "warptaxi/HousingWarpTaxiExitEstate.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptHousingWarpTaxiExitEstate();
#include "warptaxi/WarpTaxi.cpp" extern Sapphire::ScriptAPI::ScriptObject* makeScriptWarpTaxi();
const Sapphire::ScriptAPI::ScriptObject* ptrs[] = const Sapphire::ScriptAPI::ScriptObject* ptrs[] =
{ {
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefCutSceneReplay ), makeScriptCmnDefCutSceneReplay(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefInnBed ), makeScriptCmnDefInnBed(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefLinkShell ), makeScriptCmnDefLinkShell(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefMarketBoardGridania ), makeScriptCmnDefMarketBoardGridania(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefMogLetter ), makeScriptCmnDefMogLetter(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefNpcRepair ), makeScriptCmnDefNpcRepair(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefWeatherForeCast ), makeScriptCmnDefWeatherForeCast(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new ComDefMobHuntBoard ), makeScriptComDefMobHuntBoard(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new GilShop ), makeScriptGilShop(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new HouFurOrchestrion ), makeScriptHouFurOrchestrion(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new Aetheryte ), makeScriptAetheryte(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new HousingAethernet ), makeScriptHousingAethernet(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new HousingEstateEntrance ), makeScriptHousingEstateEntrance(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefHousingPersonalRoomEntrance ), makeScriptCmnDefHousingPersonalRoomEntrance(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new CmnDefHousingSignboard ), makeScriptCmnDefHousingSignboard(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new HousingWarpTaxiExitEstate ), makeScriptHousingWarpTaxiExitEstate(),
static_cast< Sapphire::ScriptAPI::ScriptObject* >( new WarpTaxi ), makeScriptWarpTaxi(),
nullptr nullptr
}; };

View file

@ -121,4 +121,6 @@ public:
else else
aethernet( eventId, player, actorId ); aethernet( eventId, player, actorId );
} }
}; };
EXPOSE_SCRIPT( Aetheryte );

View file

@ -39,4 +39,6 @@ public:
player.sendDebug( "got level entry: {0}", pHousingAethernet->level ); player.sendDebug( "got level entry: {0}", pHousingAethernet->level );
} ); } );
} }
}; };
EXPOSE_SCRIPT( HousingAethernet );

View file

@ -82,4 +82,6 @@ public:
player.setInstance( internalZone, pos ); player.setInstance( internalZone, pos );
} ); } );
} }
}; };
EXPOSE_SCRIPT( HousingEstateEntrance );

View file

@ -18,4 +18,6 @@ public:
} ); } );
} }
}; };
EXPOSE_SCRIPT( CmnDefHousingPersonalRoomEntrance );

View file

@ -91,3 +91,5 @@ public:
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefHousingSignboard );

View file

@ -22,4 +22,6 @@ public:
} }
} ); } );
} }
}; };
EXPOSE_SCRIPT( HousingWarpTaxiExitEstate );

View file

@ -65,4 +65,6 @@ public:
std::bind( &WarpTaxi::inner2, this, std::placeholders::_1, std::placeholders::_2 ) ); std::bind( &WarpTaxi::inner2, this, std::placeholders::_1, std::placeholders::_2 ) );
player.playScene( warp->conditionSuccessEvent, 0, HIDE_HOTBAR, 0, 0, 7, nullptr ); player.playScene( warp->conditionSuccessEvent, 0, HIDE_HOTBAR, 0, 0, 7, nullptr );
} }
}; };
EXPOSE_SCRIPT( WarpTaxi );

File diff suppressed because it is too large Load diff

View file

@ -34,4 +34,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors101110 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors110 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors111120 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors1120 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors121130 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors131140 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors141150 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors151160 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors161170 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors171180 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors181190 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors191200 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors2130 );

View file

@ -46,4 +46,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors3140 );

View file

@ -46,4 +46,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors4150 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors5160 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors6170 );

View file

@ -31,4 +31,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors7180 );

View file

@ -34,4 +34,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors8190 );

View file

@ -34,4 +34,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors91100 );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( AlaMhigo );

View file

@ -230,4 +230,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( AmdaporKeep );

View file

@ -94,4 +94,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( AmdaporKeepHard );

View file

@ -84,4 +84,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( BaelsarsWall );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( BardamsMettle );

View file

@ -64,4 +64,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( BrayfloxsLongstop );

View file

@ -75,4 +75,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( BrayfloxsLongstopHard );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( CastrumAbania );

View file

@ -151,4 +151,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( CastrumMeridianum );

View file

@ -128,4 +128,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( CopperbellMines );

View file

@ -113,4 +113,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( CopperbellMinesHard );

View file

@ -95,4 +95,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( CuttersCry );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( DomaCastle );

View file

@ -192,4 +192,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( DzemaelDarkhold );

View file

@ -117,4 +117,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( Halatali );

View file

@ -131,4 +131,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( HalataliHard );

View file

@ -100,4 +100,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( HaukkeManor );

View file

@ -138,4 +138,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( HaukkeManorHard );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( HellsLid );

View file

@ -141,4 +141,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( HullbreakerIsle );

View file

@ -81,4 +81,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( HullbreakerIsleHard );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( KuganeCastle );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( Neverreap );

View file

@ -84,4 +84,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( PharosSirius );

View file

@ -81,4 +81,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( PharosSiriusHard );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( SaintMociannesArboretum );

View file

@ -119,4 +119,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( Sastasha );

View file

@ -102,4 +102,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( SastashaHard );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ShisuioftheVioletTides );

View file

@ -106,4 +106,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( Snowcloak );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( SohmAl );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( SohmAlHard );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( SohrKhai );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheAery );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheAetherochemicalResearchFacility );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheAntitower );

View file

@ -61,4 +61,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheAurumVale );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheDrownedCityofSkalla );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheDuskVigil );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheFractalContinuum );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheFractalContinuumHard );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheGreatGubalLibrary );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheGreatGubalLibraryHard );

View file

@ -87,4 +87,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheKeeperoftheLake );

View file

@ -124,4 +124,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheLostCityofAmdapor );

View file

@ -113,4 +113,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheLostCityofAmdaporHard );

View file

@ -246,4 +246,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePraetorium );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheSirensongSea );

View file

@ -82,4 +82,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheStoneVigil );

View file

@ -71,4 +71,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheStoneVigilHard );

View file

@ -138,4 +138,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheSunkenTempleofQarn );

View file

@ -125,4 +125,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheSunkenTempleofQarnHard );

View file

@ -74,4 +74,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheTamTaraDeepcroft );

View file

@ -153,4 +153,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheTamTaraDeepcroftHard );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheTempleoftheFist );

View file

@ -129,4 +129,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheThousandMawsofTotoRak );

View file

@ -28,4 +28,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheVault );

View file

@ -127,4 +127,6 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheWanderersPalace );

Some files were not shown because too many files have changed in this diff Show more