Refactor safety checks, buffer reading, and scene loading
Replaces GHOST_EDITOR with GHOST_SAFETY_CHECKS for debug checks. Introduces IBufferReader and StreamBufferReader to unify buffer/stream reading. Refactors SceneManager.ParseSceneData to support both buffer and stream sources, improving error handling and resource management. Updates usages of ReadMemory to ReadBuffer. Expands and modernizes SceneSerializationTests with async and expressive assertions. Adds ergonomic QueryBuilder methods. Applies minor code style and safety improvements throughout.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
<Project>
|
||||
<PropertyGroup Condition="'$(Configuration)' == 'Debug_Editor'">
|
||||
<DefineConstants>$(DefineConstants);DEBUG;GHOST_EDITOR;GHOST_ZERO_INIT_COMPONENT;</DefineConstants>
|
||||
<DefineConstants>$(DefineConstants);DEBUG;GHOST_EDITOR;GHOST_SAFETY_CHECKS;</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)' == 'Release_Editor'">
|
||||
<DefineConstants>$(DefineConstants);GHOST_EDITOR;GHOST_ZERO_INIT_COMPONENT;</DefineConstants>
|
||||
<DefineConstants>$(DefineConstants);GHOST_EDITOR;GHOST_SAFETY_CHECKS;</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)' == 'Release_Dev'">
|
||||
<DefineConstants>$(DefineConstants);GHOST_SAFETY_CHECKS;</DefineConstants>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user