mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38: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
|
// for reference, not used anymore
|
||||||
// game types
|
// game types
|
||||||
enum ServerGame(+=1)
|
enum ServerGame
|
||||||
{
|
{
|
||||||
Game_CSS = 0,
|
Game_CSS = 0,
|
||||||
Game_CSGO,
|
Game_CSGO,
|
||||||
@ -52,14 +52,14 @@ enum ServerGame(+=1)
|
|||||||
};
|
};
|
||||||
|
|
||||||
// status
|
// status
|
||||||
enum TimerStatus(+=1)
|
enum TimerStatus
|
||||||
{
|
{
|
||||||
Timer_Stopped = 0,
|
Timer_Stopped = 0,
|
||||||
Timer_Running,
|
Timer_Running,
|
||||||
Timer_Paused
|
Timer_Paused
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ReplayStatus(+=1)
|
enum ReplayStatus
|
||||||
{
|
{
|
||||||
Replay_Start = 0,
|
Replay_Start = 0,
|
||||||
Replay_Running,
|
Replay_Running,
|
||||||
@ -67,6 +67,12 @@ enum ReplayStatus(+=1)
|
|||||||
Replay_Idle
|
Replay_Idle
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum ReplayBotType
|
||||||
|
{
|
||||||
|
Replay_Central = 0,
|
||||||
|
Replay_Legacy
|
||||||
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
sStyleName,
|
sStyleName,
|
||||||
@ -786,6 +792,13 @@ native int Shavit_GetReplayBotStyle(int client);
|
|||||||
*/
|
*/
|
||||||
native int Shavit_GetReplayBotTrack(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.
|
* Retrieve the replay bot's current played frame.
|
||||||
*
|
*
|
||||||
@ -1125,6 +1138,7 @@ public void __pl_shavit_SetNTVOptional()
|
|||||||
MarkNativeAsOptional("Shavit_GetReplayBotIndex");
|
MarkNativeAsOptional("Shavit_GetReplayBotIndex");
|
||||||
MarkNativeAsOptional("Shavit_GetReplayBotStyle");
|
MarkNativeAsOptional("Shavit_GetReplayBotStyle");
|
||||||
MarkNativeAsOptional("Shavit_GetReplayBotTrack");
|
MarkNativeAsOptional("Shavit_GetReplayBotTrack");
|
||||||
|
MarkNativeAsOptional("Shavit_GetReplayBotType");
|
||||||
MarkNativeAsOptional("Shavit_GetReplayData");
|
MarkNativeAsOptional("Shavit_GetReplayData");
|
||||||
MarkNativeAsOptional("Shavit_GetReplayFrameCount");
|
MarkNativeAsOptional("Shavit_GetReplayFrameCount");
|
||||||
MarkNativeAsOptional("Shavit_GetReplayLength");
|
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_GetReplayBotIndex", Native_GetReplayBotIndex);
|
||||||
CreateNative("Shavit_GetReplayBotStyle", Native_GetReplayBotStyle);
|
CreateNative("Shavit_GetReplayBotStyle", Native_GetReplayBotStyle);
|
||||||
CreateNative("Shavit_GetReplayBotTrack", Native_GetReplayBotTrack);
|
CreateNative("Shavit_GetReplayBotTrack", Native_GetReplayBotTrack);
|
||||||
|
CreateNative("Shavit_GetReplayBotType", Native_GetReplayBotType);
|
||||||
CreateNative("Shavit_GetReplayData", Native_GetReplayData);
|
CreateNative("Shavit_GetReplayData", Native_GetReplayData);
|
||||||
CreateNative("Shavit_GetReplayFrameCount", Native_GetReplayFrameCount);
|
CreateNative("Shavit_GetReplayFrameCount", Native_GetReplayFrameCount);
|
||||||
CreateNative("Shavit_GetReplayLength", Native_GetReplayLength);
|
CreateNative("Shavit_GetReplayLength", Native_GetReplayLength);
|
||||||
@ -421,6 +422,11 @@ public int Native_GetReplayBotTrack(Handle handler, int numParams)
|
|||||||
return GetReplayTrack(GetNativeCell(1));
|
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()
|
public void Shavit_OnDatabaseLoaded()
|
||||||
{
|
{
|
||||||
gH_SQL = Shavit_GetDatabase();
|
gH_SQL = Shavit_GetDatabase();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user