Fully enable serialization on GameSettings class and inner classes
Clarify .clang-tidy capitalization rules for global functions.
This commit is contained in:
parent
194383915c
commit
d21c410650
@ -54,7 +54,7 @@ CheckOptions:
|
|||||||
value: '.*_t|string|.*_string' }
|
value: '.*_t|string|.*_string' }
|
||||||
|
|
||||||
# Function Names
|
# Function Names
|
||||||
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
|
- { key: readability-identifier-naming.GlobalFunctionCase, value: camelBack }
|
||||||
- { key: readability-identifier-naming.PublicMethodCase, value: camelBack }
|
- { key: readability-identifier-naming.PublicMethodCase, value: camelBack }
|
||||||
- { key: readability-identifier-naming.PrivateMethodCase, value: lower_case }
|
- { key: readability-identifier-naming.PrivateMethodCase, value: lower_case }
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ struct Rectangle {
|
|||||||
uint32_t& height = size.height;
|
uint32_t& height = size.height;
|
||||||
|
|
||||||
JSON_SERIALIZABLE(Rectangle, position, size);
|
JSON_SERIALIZABLE(Rectangle, position, size);
|
||||||
// TOML_SERIALIZABLE(Rectangle, position);
|
TOML_SERIALIZABLE(Rectangle, position, size);
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class WindowMode {
|
enum class WindowMode {
|
||||||
@ -66,14 +66,17 @@ struct WindowParameters {
|
|||||||
JSON_SERIALIZABLE(
|
JSON_SERIALIZABLE(
|
||||||
WindowParameters, title, mode, placement, position, size
|
WindowParameters, title, mode, placement, position, size
|
||||||
);
|
);
|
||||||
|
TOML_SERIALIZABLE(
|
||||||
|
WindowParameters, title, mode, placement, position, size
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RendererSettings {
|
struct RendererSettings {
|
||||||
WindowParameters window;
|
WindowParameters window;
|
||||||
Resolution resolution;
|
Resolution resolution;
|
||||||
int field1;
|
|
||||||
|
|
||||||
JSON_SERIALIZABLE(RendererSettings, window, resolution, field1);
|
JSON_SERIALIZABLE(RendererSettings, window, resolution);
|
||||||
|
TOML_SERIALIZABLE(RendererSettings, window, resolution);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace elemental
|
} // namespace elemental
|
||||||
|
Loading…
Reference in New Issue
Block a user