Complete RTS-owned state; v2 adds movement groups, v1 imports with no groups. @cost Linear in saved entity and relationship counts; capture/restore copies owned snapshot vectors at checkpoint boundaries. 更多...
#include <RTSSnapshot.h>
Public 属性 | |
| std::uint32_t | version = 2 |
| std::vector< RTSMovementGroupSnapshot > | movementGroups |
| std::vector< RTSUnitSnapshot > | units |
| std::vector< RTSBuildingSnapshot > | buildings |
| std::vector< RTSResourceNodeSnapshot > | resourceNodes |
| std::vector< RTSPlayerSnapshot > | players |
| std::vector< RTSFactionSnapshot > | factions |
| std::vector< RTSMatchSnapshot > | matches |
| RTSProjectileSystemSnapshot | projectiles |
详细描述
Complete RTS-owned state; v2 adds movement groups, v1 imports with no groups. @cost Linear in saved entity and relationship counts; capture/restore copies owned snapshot vectors at checkpoint boundaries.
在文件 RTSSnapshot.h 第 172 行定义.
类成员变量说明
◆ buildings
| std::vector<RTSBuildingSnapshot> eve::rts::RTSStateSnapshot::buildings |
在文件 RTSSnapshot.h 第 176 行定义.
被这些函数引用 eve::rts::RTS::rebuildState(), eve::rts::RTS::restoreState() , 以及 eve::rts::RTS::snapshotState().
◆ factions
| std::vector<RTSFactionSnapshot> eve::rts::RTSStateSnapshot::factions |
在文件 RTSSnapshot.h 第 179 行定义.
被这些函数引用 eve::rts::RTS::rebuildState(), eve::rts::RTS::restoreState() , 以及 eve::rts::RTS::snapshotState().
◆ matches
| std::vector<RTSMatchSnapshot> eve::rts::RTSStateSnapshot::matches |
在文件 RTSSnapshot.h 第 180 行定义.
被这些函数引用 eve::rts::RTS::rebuildState(), eve::rts::RTS::restoreState() , 以及 eve::rts::RTS::snapshotState().
◆ movementGroups
| std::vector<RTSMovementGroupSnapshot> eve::rts::RTSStateSnapshot::movementGroups |
在文件 RTSSnapshot.h 第 174 行定义.
被这些函数引用 eve::rts::RTS::snapshotState().
◆ players
| std::vector<RTSPlayerSnapshot> eve::rts::RTSStateSnapshot::players |
在文件 RTSSnapshot.h 第 178 行定义.
被这些函数引用 eve::rts::RTS::rebuildState(), eve::rts::RTS::restoreState() , 以及 eve::rts::RTS::snapshotState().
◆ projectiles
| RTSProjectileSystemSnapshot eve::rts::RTSStateSnapshot::projectiles |
在文件 RTSSnapshot.h 第 181 行定义.
被这些函数引用 eve::rts::RTS::restoreState().
◆ resourceNodes
| std::vector<RTSResourceNodeSnapshot> eve::rts::RTSStateSnapshot::resourceNodes |
在文件 RTSSnapshot.h 第 177 行定义.
被这些函数引用 eve::rts::RTS::rebuildState(), eve::rts::RTS::restoreState() , 以及 eve::rts::RTS::snapshotState().
◆ units
| std::vector<RTSUnitSnapshot> eve::rts::RTSStateSnapshot::units |
在文件 RTSSnapshot.h 第 175 行定义.
被这些函数引用 eve::rts::RTS::rebuildState(), eve::rts::RTS::restoreState() , 以及 eve::rts::RTS::snapshotState().
◆ version
| std::uint32_t eve::rts::RTSStateSnapshot::version = 2 |
在文件 RTSSnapshot.h 第 173 行定义.
被这些函数引用 eve::rts::RTS::rebuildState() , 以及 eve::rts::RTS::restoreState().
该结构体的文档由以下文件生成:
- src/modules/rts/RTSSnapshot.h