mirror of https://github.com/AxioDL/metaforce.git
Merge branch 'pr-277'
This commit is contained in:
commit
556f870dc8
|
@ -37,8 +37,8 @@ public:
|
||||||
virtual ~CEntity() = default;
|
virtual ~CEntity() = default;
|
||||||
CEntity(TUniqueId uid, const CEntityInfo& info, bool active, std::string_view name);
|
CEntity(TUniqueId uid, const CEntityInfo& info, bool active, std::string_view name);
|
||||||
virtual void Accept(IVisitor& visitor) = 0;
|
virtual void Accept(IVisitor& visitor) = 0;
|
||||||
virtual void PreThink(float, CStateManager&) {}
|
virtual void PreThink(float dt, CStateManager& mgr) {}
|
||||||
virtual void Think(float, CStateManager&) {}
|
virtual void Think(float dt, CStateManager& mgr) {}
|
||||||
virtual void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr);
|
virtual void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr);
|
||||||
virtual void SetActive(bool active) { x30_24_active = active; }
|
virtual void SetActive(bool active) { x30_24_active = active; }
|
||||||
|
|
||||||
|
@ -61,8 +61,8 @@ public:
|
||||||
TEditorId GetEditorId() const { return xc_editorId; }
|
TEditorId GetEditorId() const { return xc_editorId; }
|
||||||
void SendScriptMsgs(EScriptObjectState state, CStateManager& stateMgr, EScriptObjectMessage msg);
|
void SendScriptMsgs(EScriptObjectState state, CStateManager& stateMgr, EScriptObjectMessage msg);
|
||||||
|
|
||||||
|
std::vector<SConnection>& GetConnectionList() { return x20_conns; }
|
||||||
const std::vector<SConnection>& GetConnectionList() const { return x20_conns; }
|
const std::vector<SConnection>& GetConnectionList() const { return x20_conns; }
|
||||||
std::vector<SConnection>& ConnectionList() { return x20_conns; }
|
|
||||||
|
|
||||||
std::string_view GetName() const { return x10_name; }
|
std::string_view GetName() const { return x10_name; }
|
||||||
};
|
};
|
||||||
|
|
|
@ -40,7 +40,7 @@ void CScriptCameraHint::InitializeInArea(CStateManager& mgr) {
|
||||||
continue;
|
continue;
|
||||||
TUniqueId id = mgr.GetIdForScript(conn2.x8_objId);
|
TUniqueId id = mgr.GetIdForScript(conn2.x8_objId);
|
||||||
if (TCastToPtr<CPathCamera>(mgr.ObjectById(id)) || TCastToPtr<CScriptSpindleCamera>(mgr.ObjectById((id)))) {
|
if (TCastToPtr<CPathCamera>(mgr.ObjectById(id)) || TCastToPtr<CScriptSpindleCamera>(mgr.ObjectById((id)))) {
|
||||||
it = ent->ConnectionList().erase(it);
|
it = ent->GetConnectionList().erase(it);
|
||||||
if (x164_delegatedCamera != id)
|
if (x164_delegatedCamera != id)
|
||||||
x164_delegatedCamera = id;
|
x164_delegatedCamera = id;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue