include/game/system_call.h
The names the scene and debug overlays call these main-image functions by: one typed inline each, which calls the function through the overlay's import stub. More…
#include "field/script.h"#include "field/sprite.h"#include "game/game_functions.h"#include "window/window.h"
Included by lucky_dice.c, kibombo.c, yampi_desert.c and script_inline.h.
Functions
| Name | Description | |
|---|---|---|
static inline Sint32 | sySetTickEvent (EVENT_FUNC callback, Sint32 priority) | Adds callback as an event of priority priority (EVENT_PASS_TICK runs it once a tick), or gives the event already running it that priority. |
static inline void | scFieldSetTickEvent (EVENT_FUNC callback, Sint32 priority) | sySetTickEvent, for a caller that leaves the slot unread. |
static inline Sint32 | scFieldDecompressTaggedLZ (const void *src, void *dest) | Decodes a tagged LZ stream (a first byte of 0 or 1) from src into dest. |
static inline void | fdMessageDecodeRawUnbounded (Sint32 msg, Uint16 *buf) | |
static inline void | fdSetCameraBounds (Sint32 minX, Sint32 minY, Sint32 maxX, Sint32 maxY) | |
static inline Sint32 | scFieldGameFlagGetByte (Sint32 flag) | |
static inline Sint32 | scFieldPartyListMembers (Sint16 *owners) | |
static inline Sint32 | scFieldUnitAddHp (Sint32 owner, Sint32 delta) | |
static inline void | scFieldCloseEvent (EVENT_FUNC callback) | syCloseEvent, from an overlay. |
Description
The names the scene and debug overlays call these main-image functions by:
one typed inline each, which calls the function through the overlay's import
stub. An overlay writes sySetTickEvent(callback, EVENT_PASS_TICK) where the
main image writes sySetEvent. script_inline.h includes it.
Functions in detail
sySetTickEvent
static inline Sint32 sySetTickEvent(EVENT_FUNC callback, Sint32 priority)
Adds callback as an event of priority priority (EVENT_PASS_TICK runs it
once a tick), or gives the event already running it that priority. Returns
the slot it wrote, or -1 when all 24 event slots are taken. sySetEvent under
the name overlays import it by.
References Sint32 and sySetEvent().
Referenced by fdGroundParticlesStart(), fdPaletteCycleStart(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveSetUpCave(), scAnkohlRuinsInitSand(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsStartGreatFaceSliding(), scAnkohlRuinsStartGreatFaceSlidingUpClose(), scApojiiIslandsInitHaze(), scAquaRockSetUpStreams(), scCrackedTileFind(), scEasternAlhafraStartWave(), scFlameThrowersStart(), scGabombaStatueDrawCogMetatiles(), scGabombaStatueInitEyes(), scGabombaStatueRestartClock(), scGabombaStatueSetUpChannelPuzzle(), scGabombaStatueStartClock(), scGaiaRockInsideStartPlatforms(), scGaiaRockInsideStartWallCues(), scGaiaRockStartWallCues(), scGarohInitPath(), scGaugeInit(), scGondowanCliffsSetUpPass(), scInit(), scIsletsInitWestIndra(), scIsletsStartWave(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseCycloneDropsLeader(), scJupiterLighthouseCycloneLiftsLeader(), scJupiterLighthouseStartBeam(), scJupiterLighthouseStartSparkRing(), scKandoreanTempleStartVentRoom(), scLemurianShipDeckHoldOnToTiller(), scLemurianShipDeckTakeTheTiller(), scLemuriaPalaceLoadMaps(), scLemuriaSpringInitTossSimulation(), scLemuriaStartRipple(), scLightSpritesInitEnergyBlockGlow(), scLightSpritesInitPathGlows(), scMagmaRockStartFallingRocks(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseEntranceStartHoleMask(), scMarsLighthouseHallStartDoorways(), scMarsLighthouseStarRoomUseMarsStar(), scProxInitCaveHomes() and 15 more.
Definition at line 18 of file system_call.h.
scFieldSetTickEvent
static inline void scFieldSetTickEvent(EVENT_FUNC callback, Sint32 priority)
sySetTickEvent, for a caller that leaves the slot unread.
References Sint32 and sySetEvent().
Referenced by dbPsynergyTest2StartRocks(), scAlhafranCaveSetUpJail(), scApojiiIslandsStartMetatileMarkers(), scAquaRockInsideStartPillars(), scAquaRockInsideStartSplashes(), scAquaRockInsideSteamRoomStreamDrains(), scAquaRockInsideUseAquariusStone(), scAttekaInletSetUpTheHarbor(), scDehkanPlateauCannonCastsPound(), scDehkanPlateauCannonCastsPoundOnLeader(), scEasternAlhafraStartFallingRocks(), scEpilogueLoadPortraitFrame(), scGarohInitEntrance(), scGarohInitVillage(), scInit(), scIsletsBirdReturnsToNest(), scIsletsInitEastTundaria(), scIsletsInitSeaOfTime(), scJupiterLighthousePlaceForTheFight(), scKibomboAkafubuOffersCrystal(), scKibomboCastScoop(), scKibomboPresentJewelToGabomba(), scKibomboStatueFlashes(), scLemurianShipDeckSetUpTillerDeck(), scLemurianShipDeckShowArrival(), scLemurianShipSetUpPillarRoom(), scLemurianShipSetUpPipeRoom(), scMagmaRockInsideStartFallingRocks(), scMagmaRockInsideStartStepMetatiles(), scMarsLighthouseAerieSetUpBeacon(), scPrepareMap(), scProxStartFallingRocks(), scScrollStartHBlank(), scSettlementsSetUpKaltIsland(), scSettlementsStartWaterfall(), scShamanVillageSetUpVillage(), scShrineOfTheSeaGodBreakCrossroadsBridge(), scShrineOfTheSeaGodBreakFirstBridge(), scShrineOfTheSeaGodBreakSecondBridge(), scShrineOfTheSeaGodInitBreath(), scShrineOfTheSeaGodInitCrossroads(), scShrineOfTheSeaGodInitEntrance(), scShrineOfTheSeaGodInitFootprints(), scShrineOfTheSeaGodInitSideRoom(), scTaopoSwampDarkenRoom(), scYampiDesertScorpionUsesScoop(), scYampiDesertSetUpBlitz(), scYampiDesertSetUpCavern(), scYampiDesertSetUpKingScorpionRoomScorpion(), scYampiDesertSetUpPsynergyStoneScorpion() and 1 more.
Definition at line 24 of file system_call.h.
scFieldDecompressTaggedLZ
static inline Sint32 scFieldDecompressTaggedLZ(const void *src, void *dest)
Decodes a tagged LZ stream (a first byte of 0 or 1) from src into dest.
References Sint32 and syDecompressTaggedLZ().
Referenced by fdLuckyDiceRun(), scClearLoadBackground() and scTitleLoadBackground().
Definition at line 30 of file system_call.h.
fdMessageDecodeRawUnbounded
static inline void fdMessageDecodeRawUnbounded(Sint32 msg, Uint16 *buf)
References mnMessageDecodeRawUnbounded() and Sint32.
Referenced by scLinkLobbyReceivePartyRecords().
Definition at line 35 of file system_call.h.
fdSetCameraBounds
static inline void fdSetCameraBounds(Sint32 minX, Sint32 minY, Sint32 maxX, Sint32 maxY)
References fdMapGridSetCameraBounds() and Sint32.
Referenced by scContigoInitVillage(), scContigoNarrowCameraBounds(), scContigoWidenCameraBounds(), scLemurianShipParchHold() and scLemurianShipSetBlackCrystal().
Definition at line 40 of file system_call.h.
scFieldGameFlagGetByte
static inline Sint32 scFieldGameFlagGetByte(Sint32 flag)
References Sint32 and syGameFlagGetByte().
Referenced by scCrackedTilePlaceLanding(), scInit(), scTaopoSwampFillDripSpot(), scTaopoSwampLandDrip() and scYampiDesertCaveMoveSandRipple().
Definition at line 46 of file system_call.h.
scFieldPartyListMembers
static inline Sint32 scFieldPartyListMembers(Sint16 *owners)
References gmPartyListMembers() and Sint32.
Referenced by dbIncreaseItemAndLevelRaisePartyLevels(), dbShopTestRaisePartyLevels() and scShamanVillageCheckTrialEntry().
Definition at line 51 of file system_call.h.
scFieldUnitAddHp
static inline Sint32 scFieldUnitAddHp(Sint32 owner, Sint32 delta)
References gmUnitAddHp() and Sint32.
Referenced by dbPsynergyTestDamageAndAfflictParty(), dbShopTestDamageAndAfflictParty(), scJupiterLighthouseIsaacAndIvanAreHurt(), scJupiterLighthouseJennaJoinsTheFight() and scJupiterLighthouseShebaJoinsTheFight().
Definition at line 56 of file system_call.h.
scFieldCloseEvent
static inline void scFieldCloseEvent(EVENT_FUNC callback)
syCloseEvent, from an overlay.
References syCloseEvent().
Referenced by dbPsynergyTest2EndRocks(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAnkohlRuinsCountSandTime(), scAnkohlRuinsSlideGreatFace(), scAquaRockInsideDrainStream(), scClearFadeInBlend(), scGabombaStatueStopClock(), scGaugeEnd(), scInit(), scIsletsBirdReturnsToNest(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseCycloneDropsLeader(), scJupiterLighthouseCycloneLiftsLeader(), scJupiterLighthouseEndSparkRing(), scJupiterLighthouseStartBeam(), scLemurianShipDeckReturnToShip(), scLemuriaPalaceFreeMaps(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseAerieRaiseBeaconFire(), scMarsLighthouseAerieWatchGoldenSunRise(), scMarsLighthouseHallTeleportToAerie(), scMarsLighthouseStarRoomUseMarsStar(), scPaletteCycleStop(), scRockEndFalling(), scStaffCreditPlayLighthouseTransition(), scStaffCreditShowBeacon(), scTaopoSwampFlickerPool(), scTaopoSwampOpenPassage(), scTaopoSwampPuffSteam(), scTeleportStopShimmer(), scVenusLighthouseEntranceBlastActorSkyward(), scVenusLighthouseEntranceStopDust(), scWorldMapPlayLighthouseTransition() and scYallamPauseSongGame().
Definition at line 62 of file system_call.h.