@@ -51,6 +51,8 @@ namespace tsom
5151 inline bool GetEntityByNetworkId (Packets::Helper::EntityId networkId, entt::handle* entity) const ;
5252 inline Packets::Helper::EnvironmentId GetEnvironmentId (ServerEnvironment* environment) const ;
5353
54+ inline void SetControlledShip (entt::handle entity);
55+
5456 inline void TriggerEntityRpc (entt::handle entity, Nz::UInt32 rpcIndex);
5557
5658 inline void UpdateControlledEntity (entt::handle entity, CharacterController* controller);
@@ -84,8 +86,8 @@ namespace tsom
8486 void DispatchEntitiesProperties (Nz::UInt16 tickIndex);
8587 void DispatchEntitiesRpcs (Nz::UInt16 tickIndex);
8688 void DispatchEntitiesStates (Nz::UInt16 tickIndex);
87-
8889 void DispatchEnvironments (Nz::UInt16 tickIndex);
90+
8991 void HandleEntityCreation (std::vector<Packets::Helper::EntityData>& entities, entt::handle entity, CreateEntityData&& createEntityData);
9092 void HandleEntityDestruction (entt::handle entity);
9193
@@ -168,6 +170,7 @@ namespace tsom
168170 tsl::hopscotch_map<const ServerEnvironment*, EnvironmentId> m_environmentIndices;
169171 tsl::hopscotch_set<entt::handle, HandlerHasher> m_deletedEntities;
170172 tsl::hopscotch_set<entt::handle, HandlerHasher> m_movingEntities;
173+ std::optional<entt::handle> m_nextPilotedShip;
171174 std::shared_ptr<std::size_t > m_activeChunkUpdates;
172175 std::vector<ServerEnvironment*> m_destroyedEnvironments;
173176 std::vector<ChunkData> m_visibleChunks;
0 commit comments