mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
Added Shavit_GetReplayBotType and ReplayStatus enum. (#574)
This commit is contained in:
parent
13b243f1d7
commit
59b5664439
@ -44,7 +44,7 @@
|
||||
|
||||
// for reference, not used anymore
|
||||
// game types
|
||||
enum ServerGame(+=1)
|
||||
enum ServerGame
|
||||
{
|
||||
Game_CSS = 0,
|
||||
Game_CSGO,
|
||||
@ -52,14 +52,14 @@ enum ServerGame(+=1)
|
||||
};
|
||||
|
||||
// status
|
||||
enum TimerStatus(+=1)
|
||||
enum TimerStatus
|
||||
{
|
||||
Timer_Stopped = 0,
|
||||
Timer_Running,
|
||||
Timer_Paused
|
||||
};
|
||||
|
||||
enum ReplayStatus(+=1)
|
||||
enum ReplayStatus
|
||||
{
|
||||
Replay_Start = 0,
|
||||
Replay_Running,
|
||||
@ -67,6 +67,12 @@ enum ReplayStatus(+=1)
|
||||
Replay_Idle
|
||||
};
|
||||
|
||||
enum ReplayBotType
|
||||
{
|
||||
Replay_Central = 0,
|
||||
Replay_Legacy
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
sStyleName,
|
||||
@ -786,6 +792,13 @@ native int Shavit_GetReplayBotStyle(int client);
|
||||
*/
|
||||
native int Shavit_GetReplayBotTrack(int client);
|
||||
|
||||
/**
|
||||
* Gets the replay bot type setting of the server.
|
||||
*
|
||||
* @return See ReplayBotType enum.
|
||||
*/
|
||||
native ReplayBotType Shavit_GetReplayBotType();
|
||||
|
||||
/**
|
||||
* Retrieve the replay bot's current played frame.
|
||||
*
|
||||
@ -1125,6 +1138,7 @@ public void __pl_shavit_SetNTVOptional()
|
||||
MarkNativeAsOptional("Shavit_GetReplayBotIndex");
|
||||
MarkNativeAsOptional("Shavit_GetReplayBotStyle");
|
||||
MarkNativeAsOptional("Shavit_GetReplayBotTrack");
|
||||
MarkNativeAsOptional("Shavit_GetReplayBotType");
|
||||
MarkNativeAsOptional("Shavit_GetReplayData");
|
||||
MarkNativeAsOptional("Shavit_GetReplayFrameCount");
|
||||
MarkNativeAsOptional("Shavit_GetReplayLength");
|
||||
|
||||
@ -140,6 +140,7 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
|
||||
CreateNative("Shavit_GetReplayBotIndex", Native_GetReplayBotIndex);
|
||||
CreateNative("Shavit_GetReplayBotStyle", Native_GetReplayBotStyle);
|
||||
CreateNative("Shavit_GetReplayBotTrack", Native_GetReplayBotTrack);
|
||||
CreateNative("Shavit_GetReplayBotType", Native_GetReplayBotType);
|
||||
CreateNative("Shavit_GetReplayData", Native_GetReplayData);
|
||||
CreateNative("Shavit_GetReplayFrameCount", Native_GetReplayFrameCount);
|
||||
CreateNative("Shavit_GetReplayLength", Native_GetReplayLength);
|
||||
@ -421,6 +422,11 @@ public int Native_GetReplayBotTrack(Handle handler, int numParams)
|
||||
return GetReplayTrack(GetNativeCell(1));
|
||||
}
|
||||
|
||||
public int Native_GetReplayBotType(Handle handler, int numParams)
|
||||
{
|
||||
return view_as<int>((gB_CentralBot)? Replay_Central:Replay_Legacy);
|
||||
}
|
||||
|
||||
public void Shavit_OnDatabaseLoaded()
|
||||
{
|
||||
gH_SQL = Shavit_GetDatabase();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user