1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 05:57:45 +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

@ -16,3 +16,5 @@ public:
player.returnToHomepoint(); player.returnToHomepoint();
} }
}; };
EXPOSE_SCRIPT( ActionReturn6 );

View file

@ -15,3 +15,5 @@ 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

@ -40,3 +40,6 @@ public:
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefCutSceneReplay );

View file

@ -60,3 +60,5 @@ public:
Scene00100( player ); Scene00100( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefInnBed );

View file

@ -62,3 +62,5 @@ public:
Scene00001( player ); Scene00001( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefLinkShell );

View file

@ -22,3 +22,5 @@ public:
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefMarketBoardGridania );

View file

@ -25,3 +25,5 @@ public:
} ); } );
} }
}; };
EXPOSE_SCRIPT( CmnDefMogLetter );

View file

@ -22,3 +22,5 @@ public:
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefNpcRepair );

View file

@ -25,3 +25,5 @@ public:
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( CmnDefWeatherForeCast );

View file

@ -22,3 +22,5 @@ public:
Scene00000( player ); Scene00000( player );
} }
}; };
EXPOSE_SCRIPT( ComDefMobHuntBoard );

View file

@ -56,3 +56,5 @@ 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

@ -22,3 +22,5 @@ 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

@ -122,3 +122,5 @@ public:
aethernet( eventId, player, actorId ); aethernet( eventId, player, actorId );
} }
}; };
EXPOSE_SCRIPT( Aetheryte );

View file

@ -40,3 +40,5 @@ public:
} ); } );
} }
}; };
EXPOSE_SCRIPT( HousingAethernet );

View file

@ -83,3 +83,5 @@ public:
} ); } );
} }
}; };
EXPOSE_SCRIPT( HousingEstateEntrance );

View file

@ -19,3 +19,5 @@ public:
} ); } );
} }
}; };
EXPOSE_SCRIPT( CmnDefHousingPersonalRoomEntrance );

View file

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

View file

@ -23,3 +23,5 @@ public:
} ); } );
} }
}; };
EXPOSE_SCRIPT( HousingWarpTaxiExitEstate );

View file

@ -66,3 +66,5 @@ public:
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

@ -35,3 +35,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors101110 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors110 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors111120 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors1120 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors121130 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors131140 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors141150 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors151160 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors161170 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors171180 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors181190 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors191200 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors2130 );

View file

@ -47,3 +47,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors3140 );

View file

@ -47,3 +47,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors4150 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors5160 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors6170 );

View file

@ -32,3 +32,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors7180 );

View file

@ -35,3 +35,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors8190 );

View file

@ -35,3 +35,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePalaceoftheDeadFloors91100 );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( AlaMhigo );

View file

@ -231,3 +231,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( AmdaporKeep );

View file

@ -95,3 +95,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( AmdaporKeepHard );

View file

@ -85,3 +85,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( BaelsarsWall );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( BardamsMettle );

View file

@ -65,3 +65,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( BrayfloxsLongstop );

View file

@ -76,3 +76,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( BrayfloxsLongstopHard );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( CastrumAbania );

View file

@ -152,3 +152,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( CastrumMeridianum );

View file

@ -129,3 +129,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( CopperbellMines );

View file

@ -114,3 +114,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( CopperbellMinesHard );

View file

@ -96,3 +96,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( CuttersCry );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( DomaCastle );

View file

@ -193,3 +193,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( DzemaelDarkhold );

View file

@ -118,3 +118,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( Halatali );

View file

@ -132,3 +132,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( HalataliHard );

View file

@ -101,3 +101,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( HaukkeManor );

View file

@ -139,3 +139,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( HaukkeManorHard );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( HellsLid );

View file

@ -142,3 +142,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( HullbreakerIsle );

View file

@ -82,3 +82,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( HullbreakerIsleHard );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( KuganeCastle );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( Neverreap );

View file

@ -85,3 +85,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( PharosSirius );

View file

@ -82,3 +82,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( PharosSiriusHard );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( SaintMociannesArboretum );

View file

@ -120,3 +120,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( Sastasha );

View file

@ -103,3 +103,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( SastashaHard );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ShisuioftheVioletTides );

View file

@ -107,3 +107,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( Snowcloak );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( SohmAl );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( SohmAlHard );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( SohrKhai );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheAery );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheAetherochemicalResearchFacility );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheAntitower );

View file

@ -62,3 +62,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheAurumVale );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheDrownedCityofSkalla );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheDuskVigil );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheFractalContinuum );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheFractalContinuumHard );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheGreatGubalLibrary );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheGreatGubalLibraryHard );

View file

@ -88,3 +88,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheKeeperoftheLake );

View file

@ -125,3 +125,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheLostCityofAmdapor );

View file

@ -114,3 +114,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheLostCityofAmdaporHard );

View file

@ -247,3 +247,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( ThePraetorium );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheSirensongSea );

View file

@ -83,3 +83,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheStoneVigil );

View file

@ -72,3 +72,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheStoneVigilHard );

View file

@ -139,3 +139,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheSunkenTempleofQarn );

View file

@ -126,3 +126,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheSunkenTempleofQarnHard );

View file

@ -75,3 +75,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheTamTaraDeepcroft );

View file

@ -154,3 +154,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheTamTaraDeepcroftHard );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheTempleoftheFist );

View file

@ -130,3 +130,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheThousandMawsofTotoRak );

View file

@ -29,3 +29,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheVault );

View file

@ -128,3 +128,5 @@ public:
} }
}; };
EXPOSE_SCRIPT( TheWanderersPalace );

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