Cavestory Mod API
Macros | Typedefs | Functions
CSMAPI_functions.h File Reference
#include <CSMAPI_begincode.h>
#include <CSMAPI_endcode.h>

Go to the source code of this file.

Macros

#define CSM_LogError(pCategory, pFormat, ...)   CSM_LogInfo(pCategory, "\v08" pFormat, __VA_ARGS__)
 Log an error message to the console & to the log file (if one is open). More...
 
#define CSM_LogWarn(pCategory, pFormat, ...)   CSM_LogInfo(pCategory, "\v0B" pFormat, __VA_ARGS__)
 Log a warning message to the console & to the log file (if one is open). More...
 
#define CSM_LogErrorWithInfo(pCategory, pFormat, ...)   __CSM__LogError(__FILE__, __LINE__, pCategory, pFormat, __VA_ARGS__)
 Log an error message to the console & to the log file (if one is open). More...
 
#define CSM_LogWarnWithInfo(pCategory, pFormat, ...)   __CSM__LogWarn(__FILE__, __LINE__, pCategory, pFormat, __VA_ARGS__)
 Log a warning message to the console & to the log file (if one is open). More...
 

Typedefs

typedef void(* CSM_HOOK_OnPostDrawFunc) ()
 Called after the game is finished drawing gameplay elements to the screen, but before it draws GUI elements (excluding HUD).
 
typedef void(* CSM_HOOK_OnDrawHUDFunc) (BOOL bFlash)
 Called after the game is finished drawing everything. More...
 
typedef void(* CSM_HOOK_OnDrawMapBackFunc) ()
 Called before the map's background tiles are rendered.
 
typedef void(* CSM_HOOK_OnDrawMapFrontFunc) ()
 Called before the map's foreground tiles are rendered.
 
typedef void(* CSM_HOOK_OnPreDrawHUDFunc) ()
 Called after all gameplay elements are drawn, but before the HUD is drawn.
 
typedef BOOL(* CSM_HOOK_OnDrawItemFunc) (GUI_RECT pDrawRect, MYCHAR *pMC, ITEM *pItem, int iItemIndex)
 Called when an item is drawn in the inventory menu. More...
 
typedef void(* CSM_HOOK_OnClientDisconnectedFunc) (CaveNet::DataStructures::NetClient *pClient)
 Called before a client is deleted after leaving. More...
 
typedef void(* CSM_HOOK_OnClientConnectedFunc) (CaveNet::DataStructures::NetClient *pClient)
 Called when a client has connected to the server. More...
 
typedef void(* CSM_HOOK_OnClientSpawnFunc) (CaveNet::DataStructures::NetClient *pClient)
 Called every time a client spawns. More...
 
typedef BOOL(* CSM_HOOK_OnGetTeamSpawnPointFunc) (CaveNet::DataStructures::NetTeam *pTeam, int *pSpawnX, int *pSpawnY)
 Called every time a team tries to find a valid player spawn point. More...
 
typedef void(* CSM_HOOK_OnClientDieFunc) (CaveNet::DataStructures::NetClient *pClient, PlayerDeathType iDeathType, NPCHAR *pKillerNpc, CaveNet::DataStructures::NetClient *pKillerClient)
 Called every time a client dies. More...
 
typedef void(* CSM_HOOK_OnClientReviveFunc) (CaveNet::DataStructures::NetClient *pClient, CaveNet::DataStructures::NetClient *pSavior)
 Called every time a client is revived. More...
 
typedef void(* CSM_HOOK_OnStageChangeFunc) (const char *pStageName, int iAreaIndex)
 Called every time the stage changes. More...
 
typedef BOOL(* CSM_HOOK_OnPlayerPickupHeartFunc) (NPCHAR *pHeart, CaveNet::DataStructures::NetClient *pClient, MYCHAR *pMC, int iHealth)
 Called every time a player picks up a heart. More...
 
typedef BOOL(* CSM_HOOK_OnPlayerPickupMissileFunc) (NPCHAR *pMissile, CaveNet::DataStructures::NetClient *pClient, MYCHAR *pMC, int iAmmo)
 Called every time a player picks up a missile. More...
 
typedef BOOL(* CSM_HOOK_OnPlayerPickupExperienceFunc) (NPCHAR *pExp, CaveNet::DataStructures::NetClient *pClient, MYCHAR *pMC, int iExp)
 Called every time a player picks up experience. More...
 
typedef void(* CSM_HOOK_OnServerTickFunc) ()
 Called every time the server ticks.
 
typedef void(* CSM_HOOK_OnClientTickFunc) ()
 Called every time the client ticks.
 
typedef void(* CSM_HOOK_OnTeamAddMemberFunc) (CaveNet::DataStructures::NetClient *pClient, CaveNet::DataStructures::NetClient *pServerClient, CaveNet::DataStructures::NetTeam *pTeam)
 Called when a client is added to a team. More...
 
typedef void(* CSM_HOOK_OnTeamRemoveMemberFunc) (CaveNet::DataStructures::NetClient *pClient, CaveNet::DataStructures::NetClient *pServerClient, CaveNet::DataStructures::NetTeam *pTeam)
 Called when a client is removed from a team. More...
 
typedef void(* CSM_HOOK_OnPlayerPickupNpcFunc) (CaveNet::DataStructures::NetClient *pClient, CaveNet::DataStructures::NetPlayer *pPlayer, MYCHAR *pMC, NPCHAR *pNpc)
 Called when an NPCHAR with a whitelisted code_char can be picked up by the player. More...
 
typedef BOOL(* CSM_HOOK_OnHitBulletMapFunc) (BULLET *pBullet)
 Called when a bullet is tested for collision against the map. More...
 
typedef BOOL(* CSM_HOOK_OnHitMyCharNpCharFunc) (CaveNet::DataStructures::NetClient *pClient, MYCHAR *pMC, bool bNoclip)
 Called when a player is being checked for collision with NPCs. More...
 
typedef BOOL(* CSM_HOOK_OnMyCharCollisionTest_NpChar) (CaveNet::DataStructures::NetClient *pClient, MYCHAR *pMC, NPCHAR *pNpc, BOOL bNoclip, BOOL &bCallAgain)
 Called when a player needs to test collision against a whitelisted NPC. More...
 
typedef BOOL(* CSM_HOOK_OnHitMyCharMapTileFunc) (CaveNet::DataStructures::NetClient *pClient, MYCHAR *pMC, int iTileX, int iTileY, int iTileAttrib, bool bNoclip)
 Called when a player is being checked for map collision against a specific map tile. More...
 
typedef BOOL(* CSM_HOOK_OnHitMyCharMapFunc) (CaveNet::DataStructures::NetClient *pClient, MYCHAR *pMC, bool bNoclip)
 Called when a player is being checked for map collision. More...
 
typedef void(* CSM_HOOK_OnProcessAIFunc) (CaveNet::DataStructures::NetClient *pClient, CaveNet::DataStructures::NetPlayer *pPlayer, CaveNet::DataStructures::NetTeam *pTeam)
 Called when an AI-controlled player is thinking. More...
 
typedef BOOL(* CSM_HOOK_OnMessageSentFunc) (CaveNet::DataStructures::NetClient *pClient, const char *pMessage)
 Called when a client says something. More...
 
typedef void(* CSM_HOOK_OnReceiveUserCmdFromClientFunc) (CaveNet::DataStructures::NetClient *pClient, int iArg1, int iArg2, int iArg3, int iArg4, int iArg5, int iArg6, const char *pString1)
 Called when a mod user command is received from a client. More...
 
typedef void(* CSM_HOOK_OnReceiveUserCmdFromServerFunc) (int iArg1, int iArg2, int iArg3, int iArg4, int iArg5, int iArg6, const char *pString1)
 Called when a mod user command is received from the server we're connected to. More...
 
typedef int CSM_CustomPixToneId
 A custom sound ID.
 
typedef int CSM_CustomSoundId
 

Functions

CAVESTORY_MOD_API void CSM_Log_EnableStackLines (bool bEnable)
 Enable or disable StackLines. More...
 
CAVESTORY_MOD_API void CSM_Log (const char *pFormat,...)
 Log a message to the console. More...
 
CAVESTORY_MOD_API void CSM_LogInfo (const char *pCategory, const char *pFormat,...)
 Log a message to the console & to the log file (if one is open). More...
 
CAVESTORY_MOD_API void CSM_LogColor (unsigned int iColor=0xFFFFFFFF)
 Set the color of the console. More...
 
CAVESTORY_MOD_API void __CSM__LogError (const char *pSourceFile, int iSourceLineNo, const char *pCategory, const char *pFormat,...)
 Log an error message to the console & to the log file (if one is open). More...
 
CAVESTORY_MOD_API void __CSM__LogWarn (const char *pSourceFile, int iSourceLineNo, const char *pCategory, const char *pFormat,...)
 Log a warning message to the console & to the log file (if one is open). More...
 
CAVESTORY_MOD_API void CSM_LogInfoNoNL (const char *pCategory, const char *pFormat,...)
 Log a message to the console & to the log file (if one is open). More...
 
CAVESTORY_MOD_API void CSM_Explode (int iErrorCode, const char *pErrorName, const char *pTitle="\\a{0} crashed!", const char *pMessage="The mod's DLL has crashed!", bool bGenerateCrashLog=true)
 Display a crash screen. More...
 
CAVESTORY_MOD_API int CSM_DediServer_RunCommand (const char *pFormat,...)
 Run a console command for the server. More...
 
CAVESTORY_MOD_API bool CSM_Platform_GetGameFilePath (const char *pDesiredSubpath, const char *pFileName, char *pOutputFilePath, char *pOutputFileName, const char *pFileNameFormat="*.*", void *pModPointer=NULL)
 Convert a file path into a mod file path. More...
 
CAVESTORY_MOD_API void CSM_Platform_GetProgramMode (CSM_ProgramMode *eModePtr)
 Get the current program mode. More...
 
CAVESTORY_MOD_API BOOL CSM_Platform_IsProgramMode (CSM_ProgramMode eMode)
 Check the current program mode. More...
 
CAVESTORY_MOD_API BOOL CSM_FindNetScoreType (const char *pName, CaveNet::DataStructures::NetScoreType **pOut)
 Fetch a NetScoreType by name. More...
 
CAVESTORY_MOD_API BOOL CSM_FindNetScoreTypeByHash (unsigned int iNameHash, CaveNet::DataStructures::NetScoreType **pOut)
 Fetch a NetScoreType by name hash. More...
 
CAVESTORY_MOD_API BOOL CSM_RegisterNetScoreType (const char *pName, const char *pUIFormat, const char *pUIDynamicFormat, unsigned long long int iMaskBits=0, unsigned long long int iFlags=0, CSM_NetScore_GetScoreModifyAmount pModifyFunc=NULL)
 Register a NetScoreType by name. More...
 
CAVESTORY_MOD_API bool CSM_RegisterWeaponByName (const char *pWeaponName, CSM_Weapon_ShootFunc pFunc)
 Register a weapon by name. More...
 
CAVESTORY_MOD_API bool CSM_RegisterWeapon (int iWeaponIndex, CSM_Weapon_ShootFunc pFunc)
 Register a weapon. More...
 
CAVESTORY_MOD_API bool CSM_RegisterBullet (int iBulletIndex, CSM_Bullet_ActFunc pFunc)
 Register a bullet. More...
 
CAVESTORY_MOD_API bool CSM_RegisterNpc (int iNpcIndex, CSM_Npc_ActFunc pFunc)
 Register an NPC. More...
 
CAVESTORY_MOD_API int CSM_RegisterCaret (CSM_Caret_ActFunc pFunc, int iWidth, int iHeight)
 Register a caret. More...
 
CAVESTORY_MOD_API BOOL CSM_RegisterPlayerState (const char *pStateName, unsigned long long int iFlags, unsigned int iTransmitFlags, PlayerState_ActFuncType pActFunc, PlayerState_AnimFuncType pAnimFunc, PlayerState_DrawFuncType pDrawFunc=NULL, int *pPlayerStateIndex=NULL, unsigned int iIndexOverride=0, PlayerStateAnimator_OutputType iOutputType=PlayerStateAnimator_OutputType::PSAOT_PLAYER_FRAME)
 Register a player state. More...
 
CAVESTORY_MOD_API BOOL CSM_RegisterTextScriptCommand (const char *pCmdName, const char *pShortDesc, const char *pDesc, const char *pArgs, void(*pFuncPtr)(int &, int &, int &, int &, bool &, int &))
 Register a textscript command. More...
 
CAVESTORY_MOD_API void CSM_ResetNetScoreTypes ()
 Reset all NetScore types.
 
CAVESTORY_MOD_API void CSM_SetHook_OnPostDraw (CSM_HOOK_OnPostDrawFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnDrawHUD (CSM_HOOK_OnDrawHUDFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnDrawMapBack (CSM_HOOK_OnDrawMapBackFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnDrawMapFront (CSM_HOOK_OnDrawMapFrontFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnPreDrawHUD (CSM_HOOK_OnPreDrawHUDFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnDrawItem (CSM_HOOK_OnDrawItemFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnClientDisconnected (CSM_HOOK_OnClientDisconnectedFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnClientConnected (CSM_HOOK_OnClientConnectedFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnClientSpawn (CSM_HOOK_OnClientSpawnFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnGetTeamSpawnPoint (CSM_HOOK_OnGetTeamSpawnPointFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnClientDie (CSM_HOOK_OnClientDieFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnClientRevive (CSM_HOOK_OnClientReviveFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnStageChange (CSM_HOOK_OnStageChangeFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnPlayerPickupHeart (CSM_HOOK_OnPlayerPickupHeartFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnPlayerPickupMissile (CSM_HOOK_OnPlayerPickupMissileFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnPlayerPickupExperience (CSM_HOOK_OnPlayerPickupExperienceFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnServerTick (CSM_HOOK_OnServerTickFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnClientTick (CSM_HOOK_OnClientTickFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnTeamAddMember (CSM_HOOK_OnTeamAddMemberFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnTeamRemoveMember (CSM_HOOK_OnTeamRemoveMemberFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnPlayerPickupNpc (CSM_HOOK_OnPlayerPickupNpcFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetNpcCodeCharWhitelisted (int iCodeChar, bool bWhitelisted)
 Set whether a specific code_char is whitelisted or not. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnHitBulletMap (CSM_HOOK_OnHitBulletMapFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnHitMyCharNpChar (CSM_HOOK_OnHitMyCharNpCharFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnMyCharCollisionTest_NpChar (int iNpcId, CSM_HOOK_OnMyCharCollisionTest_NpChar pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnHitMyCharMapTile (CSM_HOOK_OnHitMyCharMapTileFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnHitMyCharMap (CSM_HOOK_OnHitMyCharMapFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnProcessAI (CSM_HOOK_OnProcessAIFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnMessageSent (CSM_HOOK_OnMessageSentFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnReceiveUserCmdFromClient (CSM_HOOK_OnReceiveUserCmdFromClientFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API void CSM_SetHook_OnReceiveUserCmdFromServer (CSM_HOOK_OnReceiveUserCmdFromServerFunc pFuncPtr)
 Hook up a function to make custom code run during a game event. More...
 
CAVESTORY_MOD_API bool Config_GetBool (const char *pCVarName)
 Get a boolean value from a configuration variable. More...
 
CAVESTORY_MOD_API int Config_GetInt (const char *pCVarName)
 Get an integer value from a configuration variable. More...
 
CAVESTORY_MOD_API const char * Config_GetString (const char *pCVarName)
 Get a string value from a configuration variable. More...
 
CAVESTORY_MOD_API void Config_GetColor (const char *pCVarName, GUI_COLOR &pColor)
 Get a color value from a configuration variable. More...
 
CAVESTORY_MOD_API bool Config_SetValue (const char *pCVarName, const char *pValue, bool bUserInput=false)
 Set the value of a configuration variable. More...
 
CAVESTORY_MOD_API bool CSM_CaveNet_ConnectedAsClient ()
 Check to see whether we're connected to a server or not. More...
 
CAVESTORY_MOD_API bool CSM_CaveNet_IsHosting ()
 Check to see whether we're hosting a server. More...
 
CAVESTORY_MOD_API int CSM_CaveNet_GetClientCount ()
 Get how many clients are currently connected to the server. More...
 
CAVESTORY_MOD_API int CSM_CaveNet_GetRealClientCount ()
 Get how many clients are currently connected to the server, excluding AI players. More...
 
CAVESTORY_MOD_API BOOL CSM_CaveNet_SendUserCmdToClient (CaveNet::DataStructures::NetClient *pClient, int iArg1=0, int iArg2=0, int iArg3=0, int iArg4=0, int iArg5=0, int iArg6=0, const char *pString1=NULL)
 Send a user command to a connected client. More...
 
CAVESTORY_MOD_API BOOL CSM_CaveNet_SendUserCmdToServer (int iArg1=0, int iArg2=0, int iArg3=0, int iArg4=0, int iArg5=0, int iArg6=0, const char *pString1=NULL)
 Send a user command to the server we're connected to. More...
 
CAVESTORY_MOD_API void CSM_Boss_ResetAllBossesHealth ()
 Reset all bosses' health back to their initial health amounts.
 
CAVESTORY_MOD_API NPCHARCSM_Boss_GetBossNpc (int iIndex)
 Get a boss NPC by index. More...
 
CAVESTORY_MOD_API int CSM_Boss_GetBossCount ()
 Get the number of valid boss functions. More...
 
CAVESTORY_MOD_API int CSM_Boss_GetCurrentBossDefaultHealth ()
 Get the current boss' init health. More...
 
CAVESTORY_MOD_API void CSM_Boss_SetInitHealth (CSM_BossTypes iBossType, int iHealth)
 Set the initializer health for a boss. More...
 
CAVESTORY_MOD_API BOOL CSM_Raycasting_CastRay (GUI_POINT pPointStart, GUI_POINT pPointEnd, RAYCAST_QUERY *pInfo=NULL, bool bHitEndBlock=true, bool bHitStartBlock=true)
 Cast a ray in the game world. More...
 
CAVESTORY_MOD_API BOOL CSM_Raycasting_CastRay_Quick (int iStartX, int iStartY, int iEndX, int iEndY, unsigned int iHitMask, RAYCAST_QUERY *pInfo=NULL, bool bHitEndBlock=true, bool bHitStartBlock=true)
 Cast a ray in the game world, but faster. More...
 
CAVESTORY_MOD_API void CSM_Raycasting_SetBounds (GUI_RECT *pRect)
 Setup raycasting bounds. More...
 
CAVESTORY_MOD_API void CSM_Video_SetResolution (int iNewWidth, int iNewHeight, int iNewMagnification=-1)
 Set the game's window resolution. More...
 
CAVESTORY_MOD_API void CSM_Video_GetResolution (int *iWidth, int *iHeight)
 Get the game's window resolution. More...
 
CAVESTORY_MOD_API void CSM_SaveScreenshot (const char *pOutputImagePath, GUI_RECT *pSource=NULL)
 Take an unmagnified screenshot and save it at a path. More...
 
CAVESTORY_MOD_API void CSM_SetFramerateVisible (BOOL bValue)
 Set the visibility of the FPS counter. More...
 
CAVESTORY_MOD_API BOOL CSM_IsFramerateVisible ()
 Set the visibility of the FPS counter. More...
 
CAVESTORY_MOD_API void CSM_PlayerState_DrawWeapon (int iFrameX, int iFrameY, SafeClientInterface *pInterface, float fScale=1.f)
 Draw the weapon. More...
 
CAVESTORY_MOD_API void CSM_PlayerState_DrawCharacter (int iFrameX, int iFrameY, SafeClientInterface *pInterface, float fScale=1.f)
 Draw the character. More...
 
CAVESTORY_MOD_API int CSM_FindPlayerAnimFrameByName (const char *pName)
 Find a player animation frame's index by its name. More...
 
CAVESTORY_MOD_API BOOL CSM_CustomPlayer_IsPixelSolid (CustomPlayer *pCharacter, int iFrame, int iX, int iY)
 Determine if a pixel on a specific frame of animation is opaque or not. More...
 
CAVESTORY_MOD_API Surface_Ids CSM_CustomPlayer_GetNormalSurfaceId (CustomPlayer *pCharacter)
 Get the surface ID for a character's normal plane. More...
 
CAVESTORY_MOD_API Surface_Ids CSM_CustomPlayer_GetNormalMaskSurfaceId (CustomPlayer *pCharacter)
 Get the surface ID for a character's normal mask plane. More...
 
CAVESTORY_MOD_API Surface_Ids CSM_CustomPlayer_GetFaceSurfaceId (CustomPlayer *pCharacter)
 Get the surface ID for a character's face plane. More...
 
CAVESTORY_MOD_API Surface_Ids CSM_CustomPlayer_GetFaceMaskSurfaceId (CustomPlayer *pCharacter)
 Get the surface ID for a character's face mask plane. More...
 
CAVESTORY_MOD_API void ClearValueView ()
 Clear all view values.
 
CAVESTORY_MOD_API void SetValueView (int *pX, int *pY, int iValue)
 Create a new view value. More...
 
CAVESTORY_MOD_API void ActValueView ()
 Process all view values.
 
CAVESTORY_MOD_API void PutValueView (int iFrameX, int iFrameY)
 Draw all view values. More...
 
CAVESTORY_MOD_API BOOL IsNpCharInsideNpChar (NPCHAR *pNpc, NPCHAR *pOther)
 Check to see if an NPC is clipping bounds with another NPC. More...
 
CAVESTORY_MOD_API bool IsSpecificPlayerInsideNpChar (MYCHAR *pMC, NPCHAR *pNpc)
 Check to see if an NPC is clipping bounds with a player. More...
 
CAVESTORY_MOD_API bool IsPlayerInsideNpChar (NPCHAR *pNpc)
 Check to see if an NPC is clipping bounds with the player. More...
 
CAVESTORY_MOD_API bool IsFocusInsideNpChar (NPCHAR *pNpc)
 Check to see if an NPC is clipping bounds with the NPC's focus object. More...
 
CAVESTORY_MOD_API void SetQuake (int iTime)
 Shake the screen for iTime ticks. More...
 
CAVESTORY_MOD_API void SetQuake2 (int iTime)
 Shake the screen for iTime ticks. More...
 
CAVESTORY_MOD_API void ResetQuake ()
 Stop shaking the screen.
 
CAVESTORY_MOD_API bool IsAgilityAllowed ()
 Check whether the current mod allows agility. More...
 
CAVESTORY_MOD_API bool IsFishingAllowed ()
 Check whether the current mod allows fishing. More...
 
CAVESTORY_MOD_API bool IsCarryingAllowed ()
 Check whether the current mod allows carrying other players. More...
 
CAVESTORY_MOD_API void SetBullet (int iBulNo, int iSpawnX, int iSpawnY, int iDirection, int iCodeArms, int iLevel, int iGhostId=0)
 Spawn a bullet at the coordinates. More...
 
CAVESTORY_MOD_API void SetCaret (int iSpawnX, int iSpawnY, int iCaretId, int iDirection, CARET **pOut=NULL)
 Spawn a caret at the coordinates. More...
 
CAVESTORY_MOD_API void SetNpChar (int iNpcId, int iSpawnX, int iSpawnY, int iVelocityX, int iVelocityY, int iDirection, NPCHAR *pNpc, int iStartIndex, NPCHAR **iOutNPC=0, bool bForceSpawn=false)
 Spawn an NPC at the coordinates. More...
 
CAVESTORY_MOD_API void DeleteNpCharEvent (int iEventNo, BOOL bSetFlag=TRUE)
 Delete all NPCs with a specific event number. More...
 
CAVESTORY_MOD_API void DeleteNpCharFlag (int iFlagNo, BOOL bSetFlag=FALSE)
 Delete all NPCs with a specific flag number. More...
 
CAVESTORY_MOD_API void DeleteNpCharCode (int iCharCode, BOOL bSmoke, BOOL bSetFlag=TRUE)
 Delete all NPCs with a specific character code. More...
 
void CAVESTORY_MOD_API SetNpChar_Backwards (int iNpcId, int iSpawnX, int iSpawnY, int iVelocityX, int iVelocityY, int iDirection, NPCHAR *pNpc, int iStartIndex, NPCHAR **iOutNPC=0, bool bForceSpawn=false)
 Spawn an NPC at the coordinates. More...
 
CAVESTORY_MOD_API bool SetAnimNpChar (int iNpcId, int iVelocityX, int iVelocityY, int iDirection, NPCHAR *pNpc, int iStartIndex, MYCHAR *pMC, CustomPlayer *pCustomChar, NPCHAR **iOutNPC=0)
 Spawn an animation NPC at the coordinates. More...
 
CAVESTORY_MOD_API void CSM_SpawnEXP (int iSubPixelX, int iSubPixelY, int iAmount)
 Spawn a certain amount of EXP pellets. More...
 
CAVESTORY_MOD_API void CSM_SpawnHeart (int iSubPixelX, int iSubPixelY, int iAmount)
 Spawn a heart pickup that gives a certain amount of health. More...
 
CAVESTORY_MOD_API void CSM_SpawnAmmo (int iSubPixelX, int iSubPixelY, int iAmount)
 Spawn a missile pickup. More...
 
CAVESTORY_MOD_API int CountArmsBullet (int iArmsCode, int iGhostId=-1)
 Get the number of bullets matching the given description onscreen. More...
 
CAVESTORY_MOD_API int CountBulletNum (int iBulletCode, int iGhostId=-1)
 Get the number of bullets matching the given description onscreen. More...
 
CAVESTORY_MOD_API void DeleteArmBullets (int iArmsCode)
 Delete all bullets matching the arms ID. More...
 
CAVESTORY_MOD_API void ClearBullet ()
 Delete all bullets.
 
CAVESTORY_MOD_API bool IsActiveSomeBullet ()
 Check if some bullet is active.
 
CAVESTORY_MOD_API BOOL HasArmsData (long iCode)
 Check to see if the singleplayer character has a weapon. More...
 
CAVESTORY_MOD_API BOOL AddArmsData2 (long iCode, long iNum, long iMaxNum, long iLevel)
 Add arms data to the singleplayer character. More...
 
CAVESTORY_MOD_API BOOL UseArmsEnergy (long iNum, ARMS *pArmsTable, int iSelectedIdx)
 Use some arms energy from the selected arm. More...
 
CAVESTORY_MOD_API void ChangeToFirstArms ()
 Switch to this client's first weapon.
 
CAVESTORY_MOD_API MYCHARGetLocalPlayerCharacter ()
 Get the local player. More...
 
CAVESTORY_MOD_API BOOL ChargeArmsEnergy (long iChargeAmt, ARMS *pArmsTable, int iSelectedWeapon)
 Charge the selected weapon in pArmsTable. More...
 
CAVESTORY_MOD_API void SetDestroyNpCharUp (int iSpawnX, int iSpawnY, int iMaxRandomXOffset, int iSmokeAmt)
 Spawns smoke at the given coordinates & flashes the screen. More...
 
CAVESTORY_MOD_API BOOL TransferDataStage (int iStageNo, int iEventNo, int iSpawnX, int iSpawnY)
 Transfer over to a vanilla map. More...
 
CAVESTORY_MOD_API BOOL TransferStage (int iStageNo, int iEventNo, int iSpawnX, int iSpawnY)
 Transfer over to a new map. More...
 
CAVESTORY_MOD_API BOOL TransferStage2 (int iStageNo, int iEventNo)
 Transfer over to a new map without moving characters. More...
 
CAVESTORY_MOD_API unsigned int CSM_EntProp_GetFieldNameCRC (const char *pFieldName)
 Get the CRC value of a property field's name. More...
 
CAVESTORY_MOD_API int CSM_EntProp_GetFieldIndexByCrc (NPCHAR *pNpc, unsigned int iFieldCrc)
 Lookup the index of an NPC's property field. More...
 
CAVESTORY_MOD_API int CSM_EntProp_GetFieldIndex (NPCHAR *pNpc, const char *pFieldName)
 Lookup the index of an NPC's property field. More...
 
CAVESTORY_MOD_API int CSM_EntProp_GetFieldValue_ScanString (NPCHAR *pNpc, int iFieldIndex, const char *pFormat,...)
 Fetch the value of a field for a specific NPC. More...
 
CAVESTORY_MOD_API char * CSM_EntProp_GetFieldValue_String (NPCHAR *pNpc, int iFieldIndex, char *pOutBuffer, int iOutBufferSize, const char *pDefaultValue="")
 Fetch the value of a field for a specific NPC. More...
 
CAVESTORY_MOD_API int CSM_EntProp_GetFieldValue_Int (NPCHAR *pNpc, int iFieldIndex, int iDefaultValue=0)
 Fetch the value of a field for a specific NPC. More...
 
CAVESTORY_MOD_API float CSM_EntProp_GetFieldValue_Float (NPCHAR *pNpc, int iFieldIndex, float fDefaultValue=0.0f)
 Fetch the value of a field for a specific NPC. More...
 
CAVESTORY_MOD_API BOOL CSM_EntProp_GetFieldValue_Boolean (NPCHAR *pNpc, int iFieldIndex, BOOL bDefaultValue=FALSE)
 Fetch the value of a field for a specific NPC. More...
 
CAVESTORY_MOD_API GUI_COLORCSM_EntProp_GetFieldValue_Color (NPCHAR *pNpc, int iFieldIndex, GUI_COLOR *pColorPtr, GUI_COLOR pDefaultValue=GUI_COLOR(0, 0, 0, 0))
 Fetch the value of a field for a specific NPC. More...
 
CAVESTORY_MOD_API GUI_POINTCSM_EntProp_GetFieldValue_Point (NPCHAR *pNpc, int iFieldIndex, GUI_POINT *pPointPtr, GUI_POINT pDefaultValue=GUI_POINT(0, 0))
 Fetch the value of a field for a specific NPC. More...
 
CAVESTORY_MOD_API GUI_RECTCSM_EntProp_GetFieldValue_Rect (NPCHAR *pNpc, int iFieldIndex, GUI_RECT *pRectPtr, GUI_RECT pDefaultValue=GUI_RECT(0, 0, 0, 0))
 Fetch the value of a field for a specific NPC. More...
 
CAVESTORY_MOD_API void CSM_Map_DeleteTile (int iX, int iY, bool bRecordChange=true)
 Delete a map tile at the specified coordinates. More...
 
CAVESTORY_MOD_API void CSM_Map_ShiftTileIndex (int iX, int iY, bool bRecordChange=true)
 Shift a map tile to the left one tile index. More...
 
CAVESTORY_MOD_API BOOL CSM_Map_SetTileIndex (int iX, int iY, unsigned short iTileIndex, bool bCreateSmoke=true, bool bRecordChange=true)
 Set the map tile index for a specified tile. More...
 
CAVESTORY_MOD_API void CSM_Map_ActAnimatedTiles ()
 Act animated tiles.
 
CAVESTORY_MOD_API void CSM_Map_ClearAllTileAnimations (bool bForeground)
 Clear a specific map tile's animation. More...
 
CAVESTORY_MOD_API void CSM_Map_ClearTileAnimation (bool bForeground, unsigned int iX, unsigned int iY)
 Clear a specific map tile's animation. More...
 
CAVESTORY_MOD_API void CSM_Map_SetTileAnimation (bool bForeground, unsigned int iX, unsigned int iY, RECT *pRectList, unsigned char iRectCount, unsigned short iWait, Surface_Ids iSurfaceId=SURFACE_ID_LEVEL_TILESET)
 Set a map tile's animation. More...
 
CAVESTORY_MOD_API TEXT_SCRIPT_PTR_DATAGetCurrentTextScriptConfig ()
 Get the current text script context. More...
 
CAVESTORY_MOD_API void GetTextScriptPath (char *pPath)
 Get the text script path. More...
 
CAVESTORY_MOD_API void SetTextScriptContext (TEXT_SCRIPT_PTR_DATA *pData=&default_TextScriptPtrData)
 Set the current text script context. More...
 
CAVESTORY_MOD_API BOOL StartTextScript (int iEventNo, bool bTransmit=true, TEXT_SCRIPT_PTR_DATA *pData=&default_TextScriptPtrData, bool bUseRestrictionLevel=false, TextScriptTarget iTargetType=TextScriptTarget::TS_TARGET_EVERYONE, NPCHAR *pSourceNpc=NULL)
 Start a text script event. More...
 
CAVESTORY_MOD_API void StopTextScript ()
 Stop text script.
 
CAVESTORY_MOD_API int LoadTimeCounter (const char *pFileName="290.rec")
 Load the time counter's total time. More...
 
CAVESTORY_MOD_API unsigned long long int GetHellTimerGlobalTimerOffset ()
 Get the global timer offset at which the hell counter started at. More...
 
CAVESTORY_MOD_API void SetHellTimerGlobalTimerOffset (unsigned long long int iOffset)
 Set the global timer offset at which the hell counter started at. More...
 
CAVESTORY_MOD_API void SetHellTimerFrameCount (int iFrameCount)
 Set the current hell timer frame count. More...
 
CAVESTORY_MOD_API int GetHellTimerFrameCount ()
 Get the current hell timer frame count. More...
 
CAVESTORY_MOD_API void SetHellTimerMS (int iTimeInMS)
 Set the current hell timer time in milliseconds. More...
 
CAVESTORY_MOD_API int GetHellTimerMS ()
 Get the current hell timer time in milliseconds. More...
 
CAVESTORY_MOD_API BOOL IsProfile ()
 Check if there is a profile. More...
 
CAVESTORY_MOD_API BOOL SaveProfile (const char *pFileName, MYCHAR *pMC=NULL)
 Save the current gamestate to a profile. More...
 
CAVESTORY_MOD_API BOOL LoadProfile (const char *pFileName, BOOL bDoGameFuncs=TRUE)
 Load a profile into the current gamestate. More...
 
CAVESTORY_MOD_API BOOL SaveProfileIntoMem (PROFILE *pProfile)
 Save the current gamestate to a PROFILE* struct. More...
 
CAVESTORY_MOD_API BOOL LoadProfileFromMem (PROFILE *pProfile)
 Load the gamestate from a PROFILE* struct. More...
 
CAVESTORY_MOD_API BOOL LoadProfileIntoMem (const char *pName, PROFILE *pProfile, unsigned long long *pModifyTime=NULL)
 Load a profile into a PROFILE* struct. More...
 
CAVESTORY_MOD_API unsigned int CompareTileTypeXY (int iX, int iY, unsigned int iTileTypes)
 Compare tile types for tile at X, Y. More...
 
CAVESTORY_MOD_API unsigned int CompareTileTypeNPC (NPCHAR *pNpc, unsigned int iTileTypes)
 Compare tile types for the map tile that npc is on. More...
 
CAVESTORY_MOD_API unsigned int CompareTileType (unsigned int iTileTypes, unsigned int iOtherTileTypes)
 Compare two tile types against each other. More...
 
CAVESTORY_MOD_API unsigned int GetTileFlagsXY (int iX, int iY)
 Fetch the tile type flags for a map tile. More...
 
CAVESTORY_MOD_API unsigned int GetTileFlagsNPC (NPCHAR *pNpc)
 Fetch the tile type flags for a map tile. More...
 
CAVESTORY_MOD_API void GetFramePosition (int *iX, int *iY)
 Get the current camera position. More...
 
CAVESTORY_MOD_API void SetFramePosition (int iX, int iY)
 Set frame position. More...
 
CAVESTORY_MOD_API void SetFadeMask ()
 Completely fade the screen out.
 
CAVESTORY_MOD_API void ClearFade ()
 Clear the current screen fade.
 
CAVESTORY_MOD_API void StartFadeOut (signed char iDirect)
 Fade the screen out. More...
 
CAVESTORY_MOD_API void StartFadeIn (signed char iDirect)
 Fade the screen in. More...
 
CAVESTORY_MOD_API void ProcFade ()
 Process the fade.
 
CAVESTORY_MOD_API void PutFade ()
 Draw the fade.
 
CAVESTORY_MOD_API BOOL GetFadeActive ()
 Check to see if the screen is being faded. More...
 
CAVESTORY_MOD_API BOOL IsFadedOut ()
 Check to see if the screen is blacked out. More...
 
CAVESTORY_MOD_API void CSM_ExtendedInput_SetKeyState (CSM_SDL_Scancode iScanCode, BOOL bPressed)
 Set whether a key is being pressed or not. More...
 
CAVESTORY_MOD_API BOOL CSM_ExtendedInput_GetKey (CSM_SDL_Scancode iScanCode)
 Check to see if a key is being held down. More...
 
CAVESTORY_MOD_API BOOL CSM_ExtendedInput_GetKeyDown (CSM_SDL_Scancode iScanCode)
 Check to see if a key was depressed on this frame. More...
 
CAVESTORY_MOD_API BOOL CSM_ExtendedInput_GetKeyUp (CSM_SDL_Scancode iScanCode)
 Check to see if a key was released on this frame. More...
 
CAVESTORY_MOD_API BOOL CSM_ExtendedInput_GetKeyRepeated (CSM_SDL_Scancode iScanCode)
 Check to see if a key was repeated on this frame. More...
 
CAVESTORY_MOD_API void CSM_ExtendedInput_ProcessFrame ()
 Process an input frame.
 
CAVESTORY_MOD_API void CSM_ExtendedInput_ProcessShortcuts ()
 Process all registered keyshortcuts.
 
CAVESTORY_MOD_API int TextScriptProc ()
 Process text scripts. More...
 
CAVESTORY_MOD_API void PutTextScript ()
 Put text script on the screen.
 
CAVESTORY_MOD_API int GetKeybind (CSM_KEYBIND_DESC iType)
 Get the input flags for a keybind. More...
 
CAVESTORY_MOD_API int GetInput (CSM_KEY_DESC iType)
 Get the current input flags from a store. More...
 
CAVESTORY_MOD_API unsigned int GetTicks ()
 Get the current ticks since the program started. More...
 
CAVESTORY_MOD_API unsigned long long int CSM_GetFrameCount ()
 Get the number of frames that have passed since CSMP started. More...
 
CAVESTORY_MOD_API int Random (int iMin, int iMax)
 Get a random value. More...
 
CAVESTORY_MOD_API int GetCos (unsigned char iDeg)
 Calculate cos. More...
 
CAVESTORY_MOD_API int GetSin (unsigned char iDeg)
 Calculate sin. More...
 
CAVESTORY_MOD_API unsigned char GetArktan (int iX, int iY)
 Get arktan from x and y. More...
 
CAVESTORY_MOD_API bool IsNpcOnScreen (NPCHAR *pNpc)
 Check if an NPC is on screen. More...
 
CAVESTORY_MOD_API void CSM_Npc_GetPosition (NPCHAR *pNpc, NpcPositionType iType=NpcPositionType::NPT_DRAW_POSITION, int *iOutX=NULL, int *iOutY=NULL, int iFrameX=-1, int iFrameY=-1)
 Get the draw position of an NPC. More...
 
CAVESTORY_MOD_API void CSM_Npc_SkipUpdate (NPCHAR *pNpc)
 Skip one NPC update for a specific NPC. More...
 
CAVESTORY_MOD_API unsigned long long int CSM_Npc_GetTransmitNodes (unsigned int iCodeChar, int iActNo)
 Get the transmit nodes for a specific NPC type. More...
 
CAVESTORY_MOD_API unsigned long long int CSM_Npc_GetUpdateNodes (unsigned int iCodeChar, int iActNo)
 Get the update nodes for a specific NPC type. More...
 
CAVESTORY_MOD_API void GetMyCharDrawRectangle (MYCHAR *pMC, GUI_RECT *pOut)
 Get the draw rectangle of a MYCHAR. More...
 
CAVESTORY_MOD_API void CSM_Weapon_GetDrawOffset (MYCHAR *pMC, int iWeaponCode, GUI_POINT *pOut)
 Get the draw offset of a player's weapon. More...
 
CAVESTORY_MOD_API void CSM_Puppy_GetDrawOffset (MYCHAR *pMC, GUI_POINT *pOut)
 Get the held entity offset of a player's current frame. More...
 
CAVESTORY_MOD_API void CSM_Carry_GetDrawOffset (MYCHAR *pMC, GUI_POINT *pOut)
 Get the carried player offset of a player's current frame. More...
 
int SubpixelToScreenCoord (int iCoord)
 Convert a subpixel coordinate to screen coordinate. More...
 
int PixelToScreenCoord (int iCoord)
 Convert a pixel to a screen cordinate. More...
 
int ScreenCoordToPixel (int iCoord)
 Convert a screen cordinate to a pixel. More...
 
int ScreenCoordToSubPixel (int iCoord)
 Convert a screen cordinate to a subpixel. More...
 
CAVESTORY_MOD_API int CSM_GetWindowWidth ()
 Get the current window width. More...
 
CAVESTORY_MOD_API int CSM_GetWindowHeight ()
 Get the current window height. More...
 
CAVESTORY_MOD_API void CSM_SetBitmapLoadMagnification (int iMagnification)
 Set the magnification of all loaded bitmaps beyond this point. More...
 
CAVESTORY_MOD_API int OpenEscapeMenu ()
 Open the escape menu. More...
 
CAVESTORY_MOD_API int OpenOptionsMenu (const char **pCategoryList=NULL, int iCategoryCount=0)
 Open the options menu. More...
 
CAVESTORY_MOD_API void SetPlayerState (SafeClientInterface *pInterface, int iStateType=-1, bool bForce=false)
 Set the state of an interface. More...
 
CAVESTORY_MOD_API int GetPlayerState (SafeClientInterface *pInterface)
 Get the current playerstate of an interface. More...
 
bool IsPlayerState (MYCHAR *pChar, int iStateType)
 Check to see if a player is in the specified state. More...
 
CAVESTORY_MOD_API unsigned int GetPlayerStateFlags (MYCHAR *pChar)
 Get the flags for a player's state. More...
 
CAVESTORY_MOD_API PlayerStateAnimator_OutputType GetPlayerStateAnimatorType (MYCHAR *pChar)
 Get the return type of a player's state's animate function. More...
 
CAVESTORY_MOD_API unsigned int GetPlayerStateFlagsFromCarrier (MYCHAR *pChar)
 Get the flags from a player's carrier's playerstate. More...
 
CAVESTORY_MOD_API int FindPlayerStateByName (const char *pName)
 Find a player state by its name. More...
 
CAVESTORY_MOD_API int GetStateByUnitIndex (int iUnitIndex)
 Transform a unit index into a player state index. More...
 
CAVESTORY_MOD_API int GetUnitIndexByState (int iPlayerState)
 Transform a player state index into a unit index. More...
 
CAVESTORY_MOD_API void CheckNewLine ()
 Check if a new messagebox line needs to be created. More...
 
CAVESTORY_MOD_API void SetNumberTextScript (int iIndex)
 Type a specific number into the message box. More...
 
CAVESTORY_MOD_API void SetCharacterNameTextScript ()
 Append the character's name into the messagebox.
 
CAVESTORY_MOD_API void ClearTextLine ()
 Clear the messagebox.
 
CAVESTORY_MOD_API void Server_FocusOnCurrentPlayer ()
 Focus on the player that started the event.
 
CAVESTORY_MOD_API void Server_ClearFocusFromPlayer ()
 Stop focusing on the event executor.
 
CAVESTORY_MOD_API int GetTextScriptNo (int a)
 Get a number argument from the script. More...
 
CAVESTORY_MOD_API bool ReturnTextScript ()
 Return execution to last call command. More...
 
CAVESTORY_MOD_API bool JumpTextScript (int no, BOOL call=FALSE)
 Jump to another event. More...
 
CAVESTORY_MOD_API void ShowTextLines (const char *pLine4, const char *pLine3, const char *pLine2, const char *pLine1)
 Display a custom message in the message box. More...
 
CAVESTORY_MOD_API void DisplayCustomTextToScript (const char *pString, bool bSanitize=false)
 Appends text to the current messagebox text. More...
 
CAVESTORY_MOD_API void SetNPCFlag (long iFlagNo, bool bTransmit=true)
 Set an NPC flag to 'true'. More...
 
CAVESTORY_MOD_API void CutNPCFlag (long iFlagNo, bool bTransmit=true)
 Set an NPC flag to 'false'. More...
 
CAVESTORY_MOD_API BOOL GetNPCFlag (long iFlagNo)
 Check if an NPC flag is set. More...
 
CAVESTORY_MOD_API void SetSkipFlag (long iFlagNo, bool bTransmit=true)
 Set a skip flag to 'true'. More...
 
CAVESTORY_MOD_API void CutSkipFlag (long iFlagNo, bool bTransmit=true)
 Set a skip flag to 'true'. More...
 
CAVESTORY_MOD_API BOOL GetSkipFlag (long iFlagNo)
 Check if a skip flag is set. More...
 
CAVESTORY_MOD_API CSM_CustomPixToneId CSM_LoadPixTone (const char *pPath)
 Load a custom pixtone file. More...
 
CAVESTORY_MOD_API CSM_CustomSoundId CSM_LoadCustomSound (const char *pPath)
 Load a custom sound file. More...
 
CAVESTORY_MOD_API void CSM_SetCustomSoundPan (CSM_CustomSoundId iSoundId, unsigned char iPanAmount=50)
 Set the pan amount of a custom sound. More...
 
CAVESTORY_MOD_API void CSM_SetCustomSoundVolume (CSM_CustomSoundId iSoundId, unsigned char iVolume)
 Set the volume of a custom sound. More...
 
CAVESTORY_MOD_API BOOL CSM_UnloadPixTone (CSM_CustomPixToneId iSoundId)
 Unload a custom sound file. More...
 
CAVESTORY_MOD_API BOOL CSM_UnloadCustomSound (CSM_CustomSoundId iSoundId)
 Unload a custom sound file. More...
 
CAVESTORY_MOD_API void CSM_Sound_Process2D ()
 Process the 2D soundscape.
 
CAVESTORY_MOD_API void PlaySoundObject2D (int iSubpixelX, int iSubpixelY, int iRadius, bool bAlwaysOnScreen, int iSoundIndex, int iPlayMode=SOUND_MODE_STOP_THEN_PLAY, unsigned int iPlayVolume=0x100, unsigned int iFalloffRadius=0x7FFFFFFE)
 Play a sound by index at a specific place in the game. More...
 
CAVESTORY_MOD_API void CSM_Sound_SetPitch (int iSoundIndex, unsigned short iPitch)
 Set the pitch of a sound. More...
 
CAVESTORY_MOD_API void CSM_Sound_SetPan (int iSoundIndex, char iPan)
 Set the panning of a sound. More...
 
CAVESTORY_MOD_API void CSM_Sound_SetVolume (int iSoundIndex, unsigned char iVolume)
 Set the volume of a sound. More...
 
CAVESTORY_MOD_API void PlaySoundObject (int iSoundIndex, int iPlayMode=SOUND_MODE_STOP_THEN_PLAY, unsigned int iPlayVolume=0x100)
 Play a sound by index. More...
 
CAVESTORY_MOD_API BOOL IsSoundPlaying (int iSoundId)
 Check if a sound is playing. More...
 
CAVESTORY_MOD_API void ChangeMusic (int iMusicIndex)
 Set the current music track. More...
 
CAVESTORY_MOD_API void PlayCustomMusic (const char *pFileName)
 Play custom music. More...
 
CAVESTORY_MOD_API void CSM_Music_SetVolume (unsigned char iVolume)
 Set the volume of music. More...
 
CAVESTORY_MOD_API void ReCallMusic ()
 Recall the last played music. More...