Skip to content

Commit

Permalink
stock required for .inc functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdnk committed Aug 20, 2022
1 parent e5e7ab0 commit e6fd1c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripting/include/get5.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,7 @@ methodmap Get5BombDefusedEvent < Get5PlayerBombEvent {
}
}

void GameStateString(const Get5State state, char[] buffer, const int length) {
stock void GameStateString(const Get5State state, char[] buffer, const int length) {
switch (state) {
case Get5State_None:
Format(buffer, length, "none");
Expand All @@ -1622,14 +1622,14 @@ void GameStateString(const Get5State state, char[] buffer, const int length) {
}
}

void ConvertGameStateToStringInJson(const JSON_Object obj, const char[] key,
stock void ConvertGameStateToStringInJson(const JSON_Object obj, const char[] key,
const Get5State state) {
char gameStateString[64];
GameStateString(state, gameStateString, sizeof(gameStateString));
obj.SetString(key, gameStateString);
}

void ConvertGet5SideToStringInJson(const JSON_Object obj, const char[] key, Get5Side side) {
stock void ConvertGet5SideToStringInJson(const JSON_Object obj, const char[] key, Get5Side side) {
if (side == Get5Side_T) {
obj.SetString(key, "t");
} else if (side == Get5Side_CT) {
Expand All @@ -1641,7 +1641,7 @@ void ConvertGet5SideToStringInJson(const JSON_Object obj, const char[] key, Get5
}
}

void ConvertGet5TeamToStringInJson(const JSON_Object obj, const char[] key, Get5Team team) {
stock void ConvertGet5TeamToStringInJson(const JSON_Object obj, const char[] key, Get5Team team) {
if (team == Get5Team_1) {
obj.SetString(key, "team1");
} else if (team == Get5Team_2) {
Expand All @@ -1653,7 +1653,7 @@ void ConvertGet5TeamToStringInJson(const JSON_Object obj, const char[] key, Get5
}
}

void ConvertGet5PauseTypeToStringInJson(const JSON_Object obj, const char[] key,
stock void ConvertGet5PauseTypeToStringInJson(const JSON_Object obj, const char[] key,
Get5PauseType pauseType) {
if (pauseType == Get5PauseType_Admin) {
obj.SetString(key, "admin");
Expand All @@ -1668,7 +1668,7 @@ void ConvertGet5PauseTypeToStringInJson(const JSON_Object obj, const char[] key,
}
}

void ConvertBombSiteToStringInJson(const JSON_Object obj, const char[] key,
stock void ConvertBombSiteToStringInJson(const JSON_Object obj, const char[] key,
const Get5BombSite site) {
if (site == Get5BombSite_A) {
obj.SetString(key, "a");
Expand Down

0 comments on commit e6fd1c8

Please sign in to comment.