mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
rename Shavit_GetReplayBotFrameCount to Shavit_GetReplayCacheFrameCount
This commit is contained in:
parent
fb7d36cc18
commit
dbe9b9bffb
@ -1525,12 +1525,12 @@ native int Shavit_GetReplayButtons(int ent);
|
||||
native int Shavit_GetReplayFrameCount(int style, int track);
|
||||
|
||||
/**
|
||||
* Retrieves a replay bot's frame count.
|
||||
* Retrieves the frame count from the currently running replay bot's framecache_t.
|
||||
*
|
||||
* @param bot Replay bot entity.
|
||||
* @return Frame count.
|
||||
*/
|
||||
native int Shavit_GetReplayBotFrameCount(int bot);
|
||||
native int Shavit_GetReplayCacheFrameCount(int bot);
|
||||
|
||||
/**
|
||||
* Retrieves the replay data for the given style and track.
|
||||
@ -2477,7 +2477,7 @@ public void __pl_shavit_SetNTVOptional()
|
||||
MarkNativeAsOptional("Shavit_GetReplayButtons");
|
||||
MarkNativeAsOptional("Shavit_GetClosestReplayStyle");
|
||||
MarkNativeAsOptional("Shavit_SetClosestReplayStyle");
|
||||
MarkNativeAsOptional("Shavit_GetReplayBotFrameCount");
|
||||
MarkNativeAsOptional("Shavit_GetReplayCacheFrameCount");
|
||||
MarkNativeAsOptional("Shavit_StartReplayFromFrameCache");
|
||||
MarkNativeAsOptional("Shavit_StartReplayFromFile");
|
||||
MarkNativeAsOptional("Shavit_GetClientLastStage");
|
||||
|
||||
@ -278,7 +278,7 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
|
||||
CreateNative("Shavit_GetReplayData", Native_GetReplayData);
|
||||
CreateNative("Shavit_GetReplayFrames", Native_GetReplayFrames);
|
||||
CreateNative("Shavit_GetReplayFrameCount", Native_GetReplayFrameCount);
|
||||
CreateNative("Shavit_GetReplayBotFrameCount", Native_GetReplayBotFrameCount);
|
||||
CreateNative("Shavit_GetReplayCacheFrameCount", Native_GetReplayCacheFrameCount);
|
||||
CreateNative("Shavit_GetReplayLength", Native_GetReplayLength);
|
||||
CreateNative("Shavit_GetReplayBotLength", Native_GetReplayBotLength);
|
||||
CreateNative("Shavit_GetReplayName", Native_GetReplayName);
|
||||
@ -1092,7 +1092,7 @@ public int Native_GetReplayFrameCount(Handle handler, int numParams)
|
||||
return gA_FrameCache[GetNativeCell(1)][GetNativeCell(2)].iFrameCount;
|
||||
}
|
||||
|
||||
public int Native_GetReplayBotFrameCount(Handle handler, int numParams)
|
||||
public int Native_GetReplayCacheFrameCount(Handle handler, int numParams)
|
||||
{
|
||||
int bot = GetNativeCell(1);
|
||||
int index = GetBotInfoIndex(bot);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user