mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 02:05:28 +00:00
refactor(component): controllable physics places its object itself
Where an object starts (where the level put it) moves into ControllablePhysicsComponent::LoadConfigData, and where a character comes into the world (its save, then its respawn point, the target scene or the zone's spawn when it came from elsewhere) into LoadFromSaveData, out of Entity::Initialize. Same placement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -285,6 +285,10 @@ public:
|
||||
const bool GetImmuneToStunUseItem() { return m_ImmuneToStunUseItemCount > 0;};
|
||||
|
||||
private:
|
||||
// The save's physics state (LoadFromSaveData), then where the character comes into the world
|
||||
void ReadSaveData(const tinyxml2::XMLDocument& doc);
|
||||
void PlaceCharacter();
|
||||
|
||||
|
||||
bool OnGetObjectReportInfo(GameMessages::GetObjectReportInfo& reportInfo);
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user