Separating state out of the location
This commit is contained in:
1 parent
5e9a663812
commit
297bd7377f
45 files changed
+2114
-778
No files matched your search
@@ -23,8 +23,7 @@ namespace FRG {
|
||||
LoadedGameObject loadedObject; // rendering assets
|
||||
|
||||
// Factory: creates a fully-loaded InteractiveObject from a state descriptor.
|
||||
// Loads textures and mesh from state.objectInfo, computes mesh centering,
|
||||
// and sets state.position = jsonPosition + meshCenter.
|
||||
// Loads textures and centers the mesh around the state position.
|
||||
static InteractiveObject createFromState(InteractiveObjectState& state,
|
||||
Renderer& renderer,
|
||||
const std::string& zipPath = "");
|
||||
@@ -38,7 +37,6 @@ namespace FRG {
|
||||
friend class Location;
|
||||
friend class LocationEditor;
|
||||
friend class ScriptEngine;
|
||||
friend class InternalGameServer;
|
||||
InteractiveObjectState& state; // non-owning binding to LocationGameState
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user