DDraceNetwork Docs
editor_server_settings.h
Go to the documentation of this file.
1#ifndef GAME_EDITOR_EDITOR_SERVER_SETTINGS_H
2#define GAME_EDITOR_EDITOR_SERVER_SETTINGS_H
3
4#include "component.h"
5#include "editor_ui.h"
6
7#include <map>
8#include <string>
9#include <vector>
10
11class CEditor;
12struct SMapSettingInt;
14struct IMapSetting;
15class CLineInput;
16
18{
19 char m_aCommand[256];
20
21 CEditorMapSetting(const char *pCommand)
22 {
23 str_copy(m_aCommand, pCommand);
24 }
25};
26
27// A parsed map setting argument, storing the name and the type
28// Used for validation and to display arguments names
30{
31 char m_aName[32];
32 char m_Type;
33};
34
35// An argument for the current setting
37{
38 char m_aValue[256]; // Value of the argument
39 float m_X; // The X position
40 size_t m_Start; // Start offset within the input string
41 size_t m_End; // End offset within the input string
42 bool m_Error; // If the argument is wrong or not
43 char m_ExpectedType; // The expected type
44};
45
47{
48 const char *m_pValue; // Possible value string
49 int m_ArgIndex; // Argument for that possible value
50 const void *m_pData; // Generic pointer to pass specific data
51};
52
54{
55 char m_aMessage[256];
57
59 {
67 };
69};
70
72{
73 enum
74 {
75 TYPE_INVALID = 1 << 0,
76 TYPE_DUPLICATE = 1 << 1
77 };
78 int m_Index; // Index of the command in the loaded map settings list
79 char m_aSetting[256]; // String of the setting
80 int m_Type; // Type of that invalid setting
81 int m_CollidingIndex; // The colliding line index in case type is TYPE_DUPLICATE
82 bool m_Unknown; // Is the command unknown
83
84 struct SContext
85 {
86 bool m_Fixed;
90
91 SInvalidSetting(int Index, const char *pSetting, int Type, int CollidingIndex, bool Unknown) :
92 m_Index(Index), m_Type(Type), m_CollidingIndex(CollidingIndex), m_Unknown(Unknown), m_Context()
93 {
94 str_copy(m_aSetting, pSetting);
95 }
96};
97
98// --------------------------------------
99// Builder classes & methods to generate list of possible values
100// easily for specific settings and arguments.
101// It uses a container stored inside CMapSettingsBackend.
102// Usage:
103// CValuesBuilder Builder(&m_Container);
104// // Either do it in one go:
105// Builder("tune").Argument(0).Add("value_1").Add("value_2");
106// // Or reference the builder (useful when using in a loop):
107// auto TuneBuilder = Builder("tune").Argument(0);
108// TuneBuilder.Add("value_1");
109// TuneBuilder.Add("value_2");
110// // ...
111
112using TArgumentValuesList = std::vector<const char *>; // List of possible values
113using TSettingValues = std::map<int, TArgumentValuesList>; // Possible values per argument
114using TSettingsArgumentValues = std::map<std::string, TSettingValues>; // Possible values per argument, per command/setting name
115
116class CValuesBuilder;
119{
120public:
121 CArgumentValuesListBuilder &Add(const char *pString)
122 {
123 m_pContainer->emplace_back(pString);
124 return *this;
125 }
126
127private:
128 CArgumentValuesListBuilder(std::vector<const char *> *pContainer) :
129 m_pContainer(pContainer) {}
130
131 std::vector<const char *> *m_pContainer;
133};
134
136{
137public:
139 {
141 }
142
143private:
145 m_pContainer(pContainer) {}
146
147 friend class CValuesBuilder;
149};
150
152{
153public:
155 m_pContainer(pContainer)
156 {
157 }
158
159 CSettingValuesBuilder operator()(const char *pSettingName) const
160 {
161 return CSettingValuesBuilder(&(*m_pContainer)[pSettingName]);
162 }
163
164private:
166};
167
168// --------------------------------------
169
171{
172 static void LoadTuneValues(const CSettingValuesBuilder &TuneBuilder);
173 static void LoadTuneZoneValues(const CSettingValuesBuilder &TuneZoneBuilder);
174 static void LoadMapBugs(const CSettingValuesBuilder &BugBuilder);
175 static void LoadArgumentTuneValues(CArgumentValuesListBuilder &&ArgBuilder);
176};
177
179{
180 VALID = 0,
181 ERROR,
183 UNKNOWN,
185};
186
188{
189 ERROR,
190 REPLACE,
191 ADD
192};
193
195{
196 typedef void (*FLoaderFunction)(const CSettingValuesBuilder &);
197
198public: // General methods
200
201 void OnInit(CEditor *pEditor) override;
202 bool OnInput(const IInput::CEvent &Event) override;
203 void OnUpdate() override;
204 void OnMapLoad() override;
205
206public: // Constraints methods
207 enum class EArgConstraint
208 {
209 DEFAULT = 0,
210 UNIQUE,
211 MULTIPLE,
212 };
213
214 EArgConstraint ArgConstraint(const char *pSettingName, int Arg) const
215 {
216 return m_ArgConstraintsPerCommand.at(pSettingName).at(Arg);
217 }
218
219public: // Backend methods
220 const std::vector<SParsedMapSettingArg> &ParsedArgs(const std::shared_ptr<IMapSetting> &pSetting) const
221 {
222 return m_ParsedCommandArgs.at(pSetting);
223 }
224
225public: // CContext
227 {
233
235
236 public:
237 bool CommandIsValid() const { return m_pCurrentSetting != nullptr; }
238 int CurrentArg() const { return m_CursorArgIndex; }
239 const char *CurrentArgName() const { return (!m_pCurrentSetting || m_CursorArgIndex < 0 || m_CursorArgIndex >= (int)m_pBackend->m_ParsedCommandArgs.at(m_pCurrentSetting).size()) ? nullptr : m_pBackend->m_ParsedCommandArgs.at(m_pCurrentSetting).at(m_CursorArgIndex).m_aName; }
240 float CurrentArgPos() const { return (m_CursorArgIndex < 0 || m_CursorArgIndex >= (int)m_vCurrentArgs.size()) ? 0 : m_vCurrentArgs[m_CursorArgIndex].m_X; }
241 size_t CurrentArgOffset() const { return m_CursorArgIndex == -1 ? 0 : m_vCurrentArgs[m_CursorArgIndex].m_Start; }
242 const char *CurrentArgValue() const { return m_CursorArgIndex == -1 ? m_aCommand : m_vCurrentArgs[m_CursorArgIndex].m_aValue; }
243 const std::vector<SPossibleValueMatch> &PossibleMatches() const { return m_vPossibleMatches; }
244 bool HasError() const { return m_Error.m_aMessage[0] != '\0'; }
245 size_t ErrorOffset() const { return m_Error.m_ArgIndex < 0 ? 0 : m_vCurrentArgs.at(m_Error.m_ArgIndex).m_Start; }
246 const char *Error() const { return m_Error.m_aMessage; }
247 int ArgCount() const { return (int)m_vCurrentArgs.size(); }
248 const SCurrentSettingArg &Arg(int Index) const { return m_vCurrentArgs.at(Index); }
249 const std::shared_ptr<IMapSetting> &Setting() const { return m_pCurrentSetting; }
250 CLineInput *LineInput() const { return m_pLineInput; }
251 void SetFontSize(float FontSize) { m_FontSize = FontSize; }
252 int CommentOffset() const { return m_CommentOffset; };
253
254 int CheckCollision(ECollisionCheckResult &Result) const;
255 int CheckCollision(const std::vector<CEditorMapSetting> &vSettings, ECollisionCheckResult &Result) const;
256 int CheckCollision(const char *pInputString, const std::vector<CEditorMapSetting> &vSettings, ECollisionCheckResult &Result) const;
257
258 void Update();
259 void UpdateFromString(const char *pStr);
260 bool UpdateCursor(bool Force = false);
261 void Reset();
262 void GetCommandHelpText(char *pStr, int Length) const;
263 bool Valid() const;
264 void ColorArguments(std::vector<STextColorSplit> &vColorSplits) const;
265
269
270 private: // Methods
271 CContext(CMapSettingsBackend *pMaster, CLineInput *pLineinput) :
272 m_DropdownContext(), m_pLineInput(pLineinput), m_pBackend(pMaster)
273 {
275 Reset();
276 }
277
278 void ClearError();
279 EValidationResult ValidateArg(int Index, const char *pArg);
281 void ParseArgs(const char *pLineInputStr, const char *pStr);
282 bool OnInput(const IInput::CEvent &Event);
283 const char *InputString() const;
285
286 template<int N>
287 void FormatDisplayValue(const char *pValue, char (&aOut)[N]);
288
289 private: // Fields
290 std::shared_ptr<IMapSetting> m_pCurrentSetting; // Current setting, can be nullptr in case of invalid setting name
291 std::vector<SCurrentSettingArg> m_vCurrentArgs; // Current parsed arguments from lineinput string
292 int m_CursorArgIndex; // The current argument the cursor is over
293 std::vector<SPossibleValueMatch> m_vPossibleMatches; // The current matches from cursor argument
294 size_t m_LastCursorOffset; // Last cursor offset
296 char m_aCommand[128]; // The current command, not necessarily valid
298 int m_CommentOffset; // Position of the comment, if there is one
299
303 };
304
306 {
307 return CContext(this, pLineInput);
308 }
309
310private: // Loader methods
311 void LoadAllMapSettings();
312 void LoadCommand(const char *pName, const char *pArgs, const char *pHelp);
313 void LoadSettingInt(const std::shared_ptr<SMapSettingInt> &pSetting);
314 void LoadSettingCommand(const std::shared_ptr<SMapSettingCommand> &pSetting);
315 void InitValueLoaders();
316 void LoadPossibleValues(const CSettingValuesBuilder &Builder, const std::shared_ptr<IMapSetting> &pSetting);
317 void RegisterLoader(const char *pSettingName, const FLoaderFunction &pfnLoader);
318 void LoadConstraints();
319
320 static void PossibleConfigVariableCallback(const struct SConfigVariable *pVariable, void *pUserData);
321
322private: // Argument constraints
323 using TArgumentConstraints = std::map<int, EArgConstraint>; // Constraint per argument index
324 using TCommandArgumentConstraints = std::map<std::string, TArgumentConstraints>; // Constraints per command/setting name
325
326 // Argument constraints builder
327 // Used to define arguments constraints for specific commands
328 // It uses a container stored in CMapSettingsBackend.
329 // Usage:
330 // CCommandArgumentConstraintBuilder Command(&m_Container);
331 // Command("tune", 2).Unique(0); // Defines argument 0 of command "tune" having 2 args as UNIQUE
332 // Command("tune_zone", 3).Multiple(0).Unique(1);
333 // // ^ Multiple() currently is only for readable purposes. It can be omited:
334 // // Command("tune_zone", 3).Unique(1);
335 //
336
338
340 {
342
343 private:
345 m_pContainer(pContainer){};
346
348
349 public:
351 {
352 // Define a multiple argument constraint
353 (*m_pContainer)[Arg] = EArgConstraint::MULTIPLE;
354 return *this;
355 }
356
358 {
359 // Define a unique argument constraint
360 (*m_pContainer)[Arg] = EArgConstraint::UNIQUE;
361 return *this;
362 }
363 };
364
366 {
367 public:
369 m_pContainer(pContainer) {}
370
371 CArgumentConstraintsBuilder operator()(const char *pSettingName, int ArgCount)
372 {
373 for(int i = 0; i < ArgCount; i++)
374 (*m_pContainer)[pSettingName][i] = EArgConstraint::DEFAULT;
375 return CArgumentConstraintsBuilder(&(*m_pContainer)[pSettingName]);
376 }
377
378 private:
380 };
381
383
384private: // Backend fields
385 std::vector<std::shared_ptr<IMapSetting>> m_vpMapSettings;
386 std::map<std::shared_ptr<IMapSetting>, std::vector<SParsedMapSettingArg>> m_ParsedCommandArgs; // Parsed available settings arguments, used for validation
388 std::map<std::string, FLoaderFunction> m_LoaderFunctions;
389
391
392 friend class CEditor;
393
394private: // Map settings validation on load
396 {
397 std::vector<SInvalidSetting> m_vSettingsInvalid;
398 std::vector<CEditorMapSetting> m_vSettingsValid;
399 std::map<int, std::vector<int>> m_SettingsDuplicate;
400
403 {
404 }
405
406 void Reset()
407 {
408 m_vSettingsInvalid.clear();
409 m_vSettingsValid.clear();
410 m_SettingsDuplicate.clear();
411 }
412
414};
415
416#endif
Definition: editor_server_settings.h:119
std::vector< const char * > * m_pContainer
Definition: editor_server_settings.h:131
CArgumentValuesListBuilder(std::vector< const char * > *pContainer)
Definition: editor_server_settings.h:128
CArgumentValuesListBuilder & Add(const char *pString)
Definition: editor_server_settings.h:121
Definition: component.h:9
Definition: editor.h:276
Definition: lineinput.h:25
Definition: editor_server_settings.h:340
CArgumentConstraintsBuilder & Unique(int Arg)
Definition: editor_server_settings.h:357
CArgumentConstraintsBuilder(TArgumentConstraints *pContainer)
Definition: editor_server_settings.h:344
CArgumentConstraintsBuilder & Multiple(int Arg)
Definition: editor_server_settings.h:350
TArgumentConstraints * m_pContainer
Definition: editor_server_settings.h:347
Definition: editor_server_settings.h:366
CArgumentConstraintsBuilder operator()(const char *pSettingName, int ArgCount)
Definition: editor_server_settings.h:371
TCommandArgumentConstraints * m_pContainer
Definition: editor_server_settings.h:379
CCommandArgumentConstraintBuilder(TCommandArgumentConstraints *pContainer)
Definition: editor_server_settings.h:368
Definition: editor_server_settings.h:227
int CommentOffset() const
Definition: editor_server_settings.h:252
const char * InputString() const
Definition: editor_server_settings.cpp:1793
CContext(CMapSettingsBackend *pMaster, CLineInput *pLineinput)
Definition: editor_server_settings.h:271
void GetCommandHelpText(char *pStr, int Length) const
Definition: editor_server_settings.cpp:2075
void UpdatePossibleMatches()
Definition: editor_server_settings.cpp:1666
SCommandParseError m_Error
Definition: editor_server_settings.h:297
bool CommandIsValid() const
Definition: editor_server_settings.h:237
std::vector< SCurrentSettingArg > m_vCurrentArgs
Definition: editor_server_settings.h:291
void Update()
Definition: editor_server_settings.cpp:1218
int m_CurrentCompletionIndex
Definition: editor_server_settings.h:268
int m_CursorArgIndex
Definition: editor_server_settings.h:292
static const ColorRGBA ms_ArgumentStringColor
Definition: editor_server_settings.h:228
std::vector< SPossibleValueMatch > m_vPossibleMatches
Definition: editor_server_settings.h:293
void Reset()
Definition: editor_server_settings.cpp:1200
int m_CommentOffset
Definition: editor_server_settings.h:298
void UpdateCompositionString()
Definition: editor_server_settings.cpp:2083
CLineInput * m_pLineInput
Definition: editor_server_settings.h:295
int ArgCount() const
Definition: editor_server_settings.h:247
bool HasError() const
Definition: editor_server_settings.h:244
const char * CurrentArgValue() const
Definition: editor_server_settings.h:242
size_t ErrorOffset() const
Definition: editor_server_settings.h:245
EValidationResult ValidateArg(int Index, const char *pArg)
Definition: editor_server_settings.cpp:1609
size_t m_LastCursorOffset
Definition: editor_server_settings.h:294
static const ColorRGBA ms_ArgumentNumberColor
Definition: editor_server_settings.h:229
bool m_AllowUnknownCommands
Definition: editor_server_settings.h:266
void FormatDisplayValue(const char *pValue, char(&aOut)[N])
Definition: editor_server_settings.cpp:2106
void SetFontSize(float FontSize)
Definition: editor_server_settings.h:251
const SCurrentSettingArg & Arg(int Index) const
Definition: editor_server_settings.h:248
void ClearError()
Definition: editor_server_settings.cpp:1544
CLineInput * LineInput() const
Definition: editor_server_settings.h:250
float CurrentArgPos() const
Definition: editor_server_settings.h:240
const std::vector< SPossibleValueMatch > & PossibleMatches() const
Definition: editor_server_settings.h:243
int CheckCollision(ECollisionCheckResult &Result) const
Definition: editor_server_settings.cpp:1853
static const ColorRGBA ms_CommentColor
Definition: editor_server_settings.h:231
static const ColorRGBA ms_ErrorColor
Definition: editor_server_settings.h:232
void UpdateFromString(const char *pStr)
Definition: editor_server_settings.cpp:1223
size_t CurrentArgOffset() const
Definition: editor_server_settings.h:241
bool OnInput(const IInput::CEvent &Event)
Definition: editor_server_settings.cpp:1765
const char * CurrentArgName() const
Definition: editor_server_settings.h:239
static const ColorRGBA ms_ArgumentUnknownColor
Definition: editor_server_settings.h:230
const std::shared_ptr< IMapSetting > & Setting() const
Definition: editor_server_settings.h:249
void ColorArguments(std::vector< STextColorSplit > &vColorSplits) const
Definition: editor_server_settings.cpp:1806
bool Valid() const
Definition: editor_server_settings.cpp:2046
std::shared_ptr< IMapSetting > m_pCurrentSetting
Definition: editor_server_settings.h:290
bool UpdateCursor(bool Force=false)
Definition: editor_server_settings.cpp:1550
std::string m_CompositionStringBuffer
Definition: editor_server_settings.h:301
char m_aCommand[128]
Definition: editor_server_settings.h:296
float m_FontSize
Definition: editor_server_settings.h:302
SEditBoxDropdownContext m_DropdownContext
Definition: editor_server_settings.h:267
void ParseArgs(const char *pLineInputStr, const char *pStr)
Definition: editor_server_settings.cpp:1289
const char * Error() const
Definition: editor_server_settings.h:246
int CurrentArg() const
Definition: editor_server_settings.h:238
CMapSettingsBackend * m_pBackend
Definition: editor_server_settings.h:300
Definition: editor_server_settings.h:195
void LoadSettingCommand(const std::shared_ptr< SMapSettingCommand > &pSetting)
Definition: editor_server_settings.cpp:1111
std::map< int, EArgConstraint > TArgumentConstraints
Definition: editor_server_settings.h:323
void LoadSettingInt(const std::shared_ptr< SMapSettingInt > &pSetting)
Definition: editor_server_settings.cpp:1102
void RegisterLoader(const char *pSettingName, const FLoaderFunction &pfnLoader)
Definition: editor_server_settings.cpp:1163
TSettingsArgumentValues m_PossibleValuesPerCommand
Definition: editor_server_settings.h:387
CContext NewContext(CLineInput *pLineInput)
Definition: editor_server_settings.h:305
void InitValueLoaders()
Definition: editor_server_settings.cpp:2206
void LoadCommand(const char *pName, const char *pArgs, const char *pHelp)
Definition: editor_server_settings.cpp:1097
CMapSettingsBackend()=default
std::map< std::string, TArgumentConstraints > TCommandArgumentConstraints
Definition: editor_server_settings.h:324
std::map< std::shared_ptr< IMapSetting >, std::vector< SParsedMapSettingArg > > m_ParsedCommandArgs
Definition: editor_server_settings.h:386
void OnInit(CEditor *pEditor) override
Definition: editor_server_settings.cpp:1052
static void PossibleConfigVariableCallback(const struct SConfigVariable *pVariable, void *pUserData)
Definition: editor_server_settings.cpp:1184
std::map< std::string, FLoaderFunction > m_LoaderFunctions
Definition: editor_server_settings.h:388
std::vector< std::shared_ptr< IMapSetting > > m_vpMapSettings
Definition: editor_server_settings.h:385
void LoadConstraints()
Definition: editor_server_settings.cpp:1169
void(* FLoaderFunction)(const CSettingValuesBuilder &)
Definition: editor_server_settings.h:196
bool OnInput(const IInput::CEvent &Event) override
Definition: editor_server_settings.cpp:2120
void OnMapLoad() override
Definition: editor_server_settings.cpp:2134
static CContext * ms_pActiveContext
Definition: editor_server_settings.h:390
TCommandArgumentConstraints m_ArgConstraintsPerCommand
Definition: editor_server_settings.h:382
struct CMapSettingsBackend::SLoadedMapSettings m_LoadedMapSettings
void OnUpdate() override
Definition: editor_server_settings.cpp:2128
EArgConstraint ArgConstraint(const char *pSettingName, int Arg) const
Definition: editor_server_settings.h:214
void LoadAllMapSettings()
Definition: editor_server_settings.cpp:1083
void LoadPossibleValues(const CSettingValuesBuilder &Builder, const std::shared_ptr< IMapSetting > &pSetting)
Definition: editor_server_settings.cpp:1153
const std::vector< SParsedMapSettingArg > & ParsedArgs(const std::shared_ptr< IMapSetting > &pSetting) const
Definition: editor_server_settings.h:220
EArgConstraint
Definition: editor_server_settings.h:208
Definition: editor_server_settings.h:136
CSettingValuesBuilder(TSettingValues *pContainer)
Definition: editor_server_settings.h:144
CArgumentValuesListBuilder Argument(int Arg) const
Definition: editor_server_settings.h:138
TSettingValues * m_pContainer
Definition: editor_server_settings.h:148
Definition: editor_server_settings.h:152
CValuesBuilder(TSettingsArgumentValues *pContainer)
Definition: editor_server_settings.h:154
TSettingsArgumentValues * m_pContainer
Definition: editor_server_settings.h:165
CSettingValuesBuilder operator()(const char *pSettingName) const
Definition: editor_server_settings.h:159
Definition: color.h:210
Definition: input.h:24
std::map< int, TArgumentValuesList > TSettingValues
Definition: editor_server_settings.h:113
std::map< std::string, TSettingValues > TSettingsArgumentValues
Definition: editor_server_settings.h:114
ECollisionCheckResult
Definition: editor_server_settings.h:188
std::vector< const char * > TArgumentValuesList
Definition: editor_server_settings.h:112
EValidationResult
Definition: editor_server_settings.h:179
int str_copy(char *dst, const char *src, int dst_size)
Definition: system.cpp:2720
Definition: editor_server_settings.h:18
char m_aCommand[256]
Definition: editor_server_settings.h:19
CEditorMapSetting(const char *pCommand)
Definition: editor_server_settings.h:21
Definition: editor_server_settings.h:396
SLoadedMapSettings()
Definition: editor_server_settings.h:401
std::map< int, std::vector< int > > m_SettingsDuplicate
Definition: editor_server_settings.h:399
std::vector< SInvalidSetting > m_vSettingsInvalid
Definition: editor_server_settings.h:397
void Reset()
Definition: editor_server_settings.h:406
std::vector< CEditorMapSetting > m_vSettingsValid
Definition: editor_server_settings.h:398
Definition: editor_server_settings.cpp:25
Definition: editor_server_settings.h:54
EErrorType
Definition: editor_server_settings.h:59
@ ERROR_UNKNOWN
Definition: editor_server_settings.h:66
@ ERROR_TOO_MANY_ARGS
Definition: editor_server_settings.h:61
@ ERROR_INCOMPLETE
Definition: editor_server_settings.h:64
@ ERROR_INVALID_VALUE
Definition: editor_server_settings.h:62
@ ERROR_OUT_OF_RANGE
Definition: editor_server_settings.h:65
@ ERROR_UNKNOWN_VALUE
Definition: editor_server_settings.h:63
@ ERROR_NONE
Definition: editor_server_settings.h:60
char m_aMessage[256]
Definition: editor_server_settings.h:55
EErrorType m_Type
Definition: editor_server_settings.h:68
int m_ArgIndex
Definition: editor_server_settings.h:56
Definition: config.h:64
Definition: editor_server_settings.h:37
char m_aValue[256]
Definition: editor_server_settings.h:38
bool m_Error
Definition: editor_server_settings.h:42
char m_ExpectedType
Definition: editor_server_settings.h:43
size_t m_Start
Definition: editor_server_settings.h:40
float m_X
Definition: editor_server_settings.h:39
size_t m_End
Definition: editor_server_settings.h:41
Definition: editor_ui.h:7
Definition: editor_server_settings.h:85
bool m_Deleted
Definition: editor_server_settings.h:87
bool m_Chosen
Definition: editor_server_settings.h:88
bool m_Fixed
Definition: editor_server_settings.h:86
Definition: editor_server_settings.h:72
int m_Index
Definition: editor_server_settings.h:78
int m_CollidingIndex
Definition: editor_server_settings.h:81
@ TYPE_DUPLICATE
Definition: editor_server_settings.h:76
@ TYPE_INVALID
Definition: editor_server_settings.h:75
char m_aSetting[256]
Definition: editor_server_settings.h:79
struct SInvalidSetting::SContext m_Context
int m_Type
Definition: editor_server_settings.h:80
SInvalidSetting(int Index, const char *pSetting, int Type, int CollidingIndex, bool Unknown)
Definition: editor_server_settings.h:91
bool m_Unknown
Definition: editor_server_settings.h:82
Definition: editor_server_settings.cpp:48
Definition: editor_server_settings.cpp:39
Definition: editor_server_settings.h:30
char m_aName[32]
Definition: editor_server_settings.h:31
char m_Type
Definition: editor_server_settings.h:32
Definition: editor_server_settings.h:47
const void * m_pData
Definition: editor_server_settings.h:50
const char * m_pValue
Definition: editor_server_settings.h:48
int m_ArgIndex
Definition: editor_server_settings.h:49
Definition: editor_server_settings.h:171
static void LoadMapBugs(const CSettingValuesBuilder &BugBuilder)
Definition: editor_server_settings.cpp:2226
static void LoadArgumentTuneValues(CArgumentValuesListBuilder &&ArgBuilder)
Definition: editor_server_settings.cpp:2234
static void LoadTuneValues(const CSettingValuesBuilder &TuneBuilder)
Definition: editor_server_settings.cpp:2214
static void LoadTuneZoneValues(const CSettingValuesBuilder &TuneZoneBuilder)
Definition: editor_server_settings.cpp:2220