aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/plugins.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/plugins.cpp')
-rw-r--r--NorthstarDedicatedTest/plugins.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/NorthstarDedicatedTest/plugins.cpp b/NorthstarDedicatedTest/plugins.cpp
index 9f0c062f..157ac416 100644
--- a/NorthstarDedicatedTest/plugins.cpp
+++ b/NorthstarDedicatedTest/plugins.cpp
@@ -113,12 +113,12 @@ void initGameState()
SQRESULT SQ_UpdateGameStateUI(void* sqvm)
{
AcquireSRWLockExclusive(&gameStateLock);
- gameState.map = g_pClientSquirrel->sq_getstring(sqvm, 1);
- gameState.mapDisplayName = g_pClientSquirrel->sq_getstring(sqvm, 2);
- gameState.playlist = g_pClientSquirrel->sq_getstring(sqvm, 3);
- gameState.playlistDisplayName = g_pClientSquirrel->sq_getstring(sqvm, 4);
- gameState.connected = g_pClientSquirrel->sq_getbool(sqvm, 5);
- gameState.loading = g_pClientSquirrel->sq_getbool(sqvm, 6);
+ gameState.map = g_pUISquirrel->getstring(sqvm, 1);
+ gameState.mapDisplayName = g_pUISquirrel->getstring(sqvm, 2);
+ gameState.playlist = g_pUISquirrel->getstring(sqvm, 3);
+ gameState.playlistDisplayName = g_pUISquirrel->getstring(sqvm, 4);
+ gameState.connected = g_pUISquirrel->getbool(sqvm, 5);
+ gameState.loading = g_pUISquirrel->getbool(sqvm, 6);
ReleaseSRWLockExclusive(&gameStateLock);
return SQRESULT_NOTNULL;
}
@@ -128,13 +128,13 @@ SQRESULT SQ_UpdateGameStateClient(void* sqvm)
{
AcquireSRWLockExclusive(&gameStateLock);
AcquireSRWLockExclusive(&serverInfoLock);
- gameState.players = g_pClientSquirrel->sq_getinteger(sqvm, 1);
- serverInfo.maxPlayers = g_pClientSquirrel->sq_getinteger(sqvm, 2);
- gameState.ourScore = g_pClientSquirrel->sq_getinteger(sqvm, 3);
- gameState.secondHighestScore = g_pClientSquirrel->sq_getinteger(sqvm, 4);
- gameState.highestScore = g_pClientSquirrel->sq_getinteger(sqvm, 5);
- serverInfo.roundBased = g_pClientSquirrel->sq_getbool(sqvm, 6);
- serverInfo.scoreLimit = g_pClientSquirrel->sq_getbool(sqvm, 7);
+ gameState.players = g_pClientSquirrel->getinteger(sqvm, 1);
+ serverInfo.maxPlayers = g_pClientSquirrel->getinteger(sqvm, 2);
+ gameState.ourScore = g_pClientSquirrel->getinteger(sqvm, 3);
+ gameState.secondHighestScore = g_pClientSquirrel->getinteger(sqvm, 4);
+ gameState.highestScore = g_pClientSquirrel->getinteger(sqvm, 5);
+ serverInfo.roundBased = g_pClientSquirrel->getbool(sqvm, 6);
+ serverInfo.scoreLimit = g_pClientSquirrel->getbool(sqvm, 7);
ReleaseSRWLockExclusive(&gameStateLock);
ReleaseSRWLockExclusive(&serverInfoLock);
return SQRESULT_NOTNULL;
@@ -146,15 +146,15 @@ SQRESULT SQ_UpdateServerInfo(void* sqvm)
{
AcquireSRWLockExclusive(&gameStateLock);
AcquireSRWLockExclusive(&serverInfoLock);
- serverInfo.id = g_pClientSquirrel->sq_getstring(sqvm, 1);
- serverInfo.name = g_pClientSquirrel->sq_getstring(sqvm, 2);
- serverInfo.password = g_pClientSquirrel->sq_getstring(sqvm, 3);
- gameState.players = g_pClientSquirrel->sq_getinteger(sqvm, 4);
- serverInfo.maxPlayers = g_pClientSquirrel->sq_getinteger(sqvm, 5);
- gameState.map = g_pClientSquirrel->sq_getstring(sqvm, 6);
- gameState.mapDisplayName = g_pClientSquirrel->sq_getstring(sqvm, 7);
- gameState.playlist = g_pClientSquirrel->sq_getstring(sqvm, 8);
- gameState.playlistDisplayName = g_pClientSquirrel->sq_getstring(sqvm, 9);
+ serverInfo.id = g_pUISquirrel->getstring(sqvm, 1);
+ serverInfo.name = g_pUISquirrel->getstring(sqvm, 2);
+ serverInfo.password = g_pUISquirrel->getstring(sqvm, 3);
+ gameState.players = g_pUISquirrel->getinteger(sqvm, 4);
+ serverInfo.maxPlayers = g_pUISquirrel->getinteger(sqvm, 5);
+ gameState.map = g_pUISquirrel->getstring(sqvm, 6);
+ gameState.mapDisplayName = g_pUISquirrel->getstring(sqvm, 7);
+ gameState.playlist = g_pUISquirrel->getstring(sqvm, 8);
+ gameState.playlistDisplayName = g_pUISquirrel->getstring(sqvm, 9);
ReleaseSRWLockExclusive(&gameStateLock);
ReleaseSRWLockExclusive(&serverInfoLock);
return SQRESULT_NOTNULL;
@@ -164,10 +164,10 @@ SQRESULT SQ_UpdateServerInfo(void* sqvm)
SQRESULT SQ_UpdateServerInfoBetweenRounds(void* sqvm)
{
AcquireSRWLockExclusive(&serverInfoLock);
- serverInfo.id = g_pClientSquirrel->sq_getstring(sqvm, 1);
- serverInfo.name = g_pClientSquirrel->sq_getstring(sqvm, 2);
- serverInfo.password = g_pClientSquirrel->sq_getstring(sqvm, 3);
- serverInfo.maxPlayers = g_pClientSquirrel->sq_getinteger(sqvm, 4);
+ serverInfo.id = g_pClientSquirrel->getstring(sqvm, 1);
+ serverInfo.name = g_pClientSquirrel->getstring(sqvm, 2);
+ serverInfo.password = g_pClientSquirrel->getstring(sqvm, 3);
+ serverInfo.maxPlayers = g_pClientSquirrel->getinteger(sqvm, 4);
ReleaseSRWLockExclusive(&serverInfoLock);
return SQRESULT_NOTNULL;
}
@@ -176,7 +176,7 @@ SQRESULT SQ_UpdateServerInfoBetweenRounds(void* sqvm)
SQRESULT SQ_UpdateTimeInfo(void* sqvm)
{
AcquireSRWLockExclusive(&serverInfoLock);
- serverInfo.endTime = ceil(g_pClientSquirrel->sq_getfloat(sqvm, 1));
+ serverInfo.endTime = ceil(g_pClientSquirrel->getfloat(sqvm, 1));
ReleaseSRWLockExclusive(&serverInfoLock);
return SQRESULT_NOTNULL;
}
@@ -185,7 +185,7 @@ SQRESULT SQ_UpdateTimeInfo(void* sqvm)
SQRESULT SQ_SetConnected(void* sqvm)
{
AcquireSRWLockExclusive(&gameStateLock);
- gameState.loading = g_pClientSquirrel->sq_getbool(sqvm, 1);
+ gameState.loading = g_pUISquirrel->getbool(sqvm, 1);
ReleaseSRWLockExclusive(&gameStateLock);
return SQRESULT_NOTNULL;
}