Skip to content

Commit f67acc6

Browse files
committed
rename ECustomDataClientTrust
1 parent 640c46f commit f67acc6

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Server/mods/deathmatch/logic/CCustomData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void CCustomData::Set(const char* szName, const CLuaArgument& Variable, ESyncTyp
100100
SCustomData newData;
101101
newData.Variable = Variable;
102102
newData.syncType = syncType;
103-
newData.clientChangesMode = ECustomDataClientTrust::UNSET;
103+
newData.clientChangesMode = eCustomDataClientTrust::UNSET;
104104
m_Data[szName] = newData;
105105
UpdateSynced(szName, Variable, syncType);
106106
}
@@ -121,7 +121,7 @@ bool CCustomData::Delete(const char* szName)
121121
return false;
122122
}
123123

124-
void CCustomData::SetClientChangesMode(const char* szName, ECustomDataClientTrust mode)
124+
void CCustomData::SetClientChangesMode(const char* szName, eCustomDataClientTrust mode)
125125
{
126126
SCustomData& pData = m_Data[szName];
127127
pData.clientChangesMode = mode;

Server/mods/deathmatch/logic/CCustomData.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enum class ESyncType
2525
SUBSCRIBE,
2626
};
2727

28-
enum class ECustomDataClientTrust : std::uint8_t
28+
enum class eCustomDataClientTrust : std::uint8_t
2929
{
3030
UNSET,
3131
ALLOW,
@@ -36,7 +36,7 @@ struct SCustomData
3636
{
3737
CLuaArgument Variable;
3838
ESyncType syncType;
39-
ECustomDataClientTrust clientChangesMode;
39+
eCustomDataClientTrust clientChangesMode;
4040
};
4141

4242
class CCustomData
@@ -50,7 +50,7 @@ class CCustomData
5050

5151
bool Delete(const char* szName);
5252

53-
void SetClientChangesMode(const char* szName, ECustomDataClientTrust mode);
53+
void SetClientChangesMode(const char* szName, eCustomDataClientTrust mode);
5454

5555
unsigned short CountOnlySynchronized();
5656

Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,14 +955,14 @@ bool CStaticFunctionDefinitions::SetElementID(CElement* pElement, const char* sz
955955
}
956956

957957
bool CStaticFunctionDefinitions::SetElementData(CElement* pElement, const char* szName, const CLuaArgument& Variable, ESyncType syncType,
958-
std::optional<ECustomDataClientTrust> clientTrust)
958+
std::optional<eCustomDataClientTrust> clientTrust)
959959
{
960960
assert(pElement);
961961
assert(szName);
962962
assert(strlen(szName) <= MAX_CUSTOMDATA_NAME_LENGTH);
963963

964964
ESyncType lastSyncType = ESyncType::BROADCAST;
965-
ECustomDataClientTrust lastClientTrust{};
965+
eCustomDataClientTrust lastClientTrust{};
966966
CLuaArgument* pCurrentVariable = pElement->GetCustomData(szName, false, &lastSyncType, &lastClientTrust);
967967

968968
if (clientTrust.has_value() && lastClientTrust != clientTrust.value())

Server/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ DECLARE_ENUM(CAccessControlListRight::ERightType);
3838
DECLARE_ENUM(CElement::EElementType);
3939
DECLARE_ENUM(CAccountPassword::EAccountPasswordType);
4040
DECLARE_ENUM_CLASS(ESyncType);
41-
DECLARE_ENUM_CLASS(ECustomDataClientTrust)
41+
DECLARE_ENUM_CLASS(eCustomDataClientTrust)
4242

4343
enum eHudComponent
4444
{

Server/mods/deathmatch/logic/luadefs/CLuaElementDefs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ int CLuaElementDefs::setElementData(lua_State* luaVM)
15381538
SString strKey;
15391539
CLuaArgument value;
15401540
ESyncType syncType = ESyncType::BROADCAST;
1541-
std::optional<ECustomDataClientTrust> clientTrust{};
1541+
std::optional<eCustomDataClientTrust> clientTrust{};
15421542

15431543
CScriptArgReader argStream(luaVM);
15441544
argStream.ReadUserData(pElement);
@@ -1557,7 +1557,7 @@ int CLuaElementDefs::setElementData(lua_State* luaVM)
15571557

15581558
if (!argStream.NextIsNone())
15591559
{
1560-
ECustomDataClientTrust trustReaded;
1560+
eCustomDataClientTrust trustReaded;
15611561
argStream.ReadEnumString(trustReaded);
15621562
clientTrust = trustReaded;
15631563
}

0 commit comments

Comments
 (0)