Make spatial script finders public

This commit is contained in:
Alexander Batalov 2022-11-08 22:45:30 +03:00
parent ef54463fcc
commit fa11122f87
2 changed files with 4 additions and 4 deletions

View File

@ -80,8 +80,6 @@ static int scriptRead(Script* scr, File* stream);
static int scriptListExtentRead(ScriptListExtent* a1, File* stream);
static int scriptGetNewId(int scriptType);
static int scriptsRemoveLocalVars(Script* script);
static Script* scriptGetFirstSpatialScript(int a1);
static Script* scriptGetNextSpatialScript();
static int scriptsGetMessageList(int a1, MessageList** out_message_list);
// 0x50D6B8
@ -2409,7 +2407,7 @@ int _scr_remove_all_force()
}
// 0x4A6524
static Script* scriptGetFirstSpatialScript(int elevation)
Script* scriptGetFirstSpatialScript(int elevation)
{
gScriptsEnumerationElevation = elevation;
gScriptsEnumerationScriptIndex = 0;
@ -2428,7 +2426,7 @@ static Script* scriptGetFirstSpatialScript(int elevation)
}
// 0x4A6564
static Script* scriptGetNextSpatialScript()
Script* scriptGetNextSpatialScript()
{
ScriptListExtent* scriptListExtent = gScriptsEnumerationScriptListExtent;
int scriptIndex = gScriptsEnumerationScriptIndex;

View File

@ -207,6 +207,8 @@ int scriptAdd(int* sidPtr, int scriptType);
int scriptRemove(int index);
int _scr_remove_all();
int _scr_remove_all_force();
Script* scriptGetFirstSpatialScript(int elevation);
Script* scriptGetNextSpatialScript();
void _scr_spatials_enable();
void _scr_spatials_disable();
bool scriptsExecSpatialProc(Object* obj, int tile, int elevation);