载入中...
搜索中...
未找到
RTSSnapshot.h
浏览该文件的文档.
1#pragma once
2
8#include "rts/RTSSystems.h"
9
10#include <map>
11#include <vector>
12
13namespace eve::rts {
14
17 std::string resourceType;
20 float cargo = 0.0f;
21 float capacity = 0.0f;
22 float gatherRate = 0.0f;
23 float buildRate = 1.0f;
24 float repairRate = 0.0f;
25 bool autoAssign = false;
26};
27
68
104
114
118 std::string displayName;
119 std::vector<SubjectRef> units;
120 std::vector<SubjectRef> buildings;
121};
122
135
139 int team = 0;
140 bool eliminated = false;
141 bool surrendered = false;
142 std::string reason;
143};
144
153
160 struct Member {
162 std::string orderId;
163 };
164 std::vector<Member> members;
165 float leadDistance = 2.f;
166};
167
173 std::uint32_t version = 2;
174 std::vector<RTSMovementGroupSnapshot> movementGroups;
175 std::vector<RTSUnitSnapshot> units;
176 std::vector<RTSBuildingSnapshot> buildings;
177 std::vector<RTSResourceNodeSnapshot> resourceNodes;
178 std::vector<RTSPlayerSnapshot> players;
179 std::vector<RTSFactionSnapshot> factions;
180 std::vector<RTSMatchSnapshot> matches;
182};
183
184} // namespace eve::rts
Deterministic phase-one RTS systems and their ECS contracts.
Human-readable, scoped identifier in the form namespace:name.
Definition Identity.h:411
Strong, domain-neutral reference to a runtime subject.
Definition SubjectRef.h:26
Transaction-safe snapshot of selected attributes and their modifiers.
Deterministic contested capture state.
Definition RTSTypes.h:920
Automatic targeting policy for a stationary defensive building.
Definition RTSTypes.h:958
Static command provider and hostile jamming policy.
Definition RTSTypes.h:1016
Construction progress and generation-checked assigned builders.
Definition RTSTypes.h:897
Resource delivery policy; actual balances remain in the economy provider.
Definition RTSTypes.h:928
Building garrison capacity and generation-checked occupants.
Definition RTSTypes.h:973
Last indirect-fire exposure for static artillery and counter-battery observation.
Definition RTSTypes.h:1025
RTS infrastructure projection; economy balances remain owned by the linked provider.
Definition RTSTypes.h:1005
Building health and repair economy configuration.
Definition RTSTypes.h:904
Placement world key and authoritative cell state.
Definition RTSTypes.h:859
Rally order copied to newly produced units.
Definition RTSTypes.h:933
RTS shield layer for structures; canonical CombatState remains health authority.
Definition RTSTypes.h:912
Static ammunition stock and transfer policy for completed buildings.
Definition RTSTypes.h:979
Upgrade ids already projected onto this building.
Definition RTSTypes.h:1001
Static vision contribution projected into a faction-owned canonical map FOV provider.
Definition RTSTypes.h:991
Persistent last-known enemy contacts derived from the faction's canonical FOV provider.
Definition RTSTypes.h:1243
Cross-factory resource floors reserved for production at or above a priority threshold.
Definition RTSTypes.h:1234
Deterministic high-level production and attack policy for an AI-controlled faction.
Definition RTSTypes.h:1214
Completed research definitions and canonical production tasks already consumed.
Definition RTSTypes.h:1258
Deterministic idle-worker assignment policy for construction and repair.
Definition RTSTypes.h:1226
Deterministic retained lifecycle events.
Definition RTSTypes.h:1332
Configured victory rule; immutable while the match is running.
Definition RTSTypes.h:1308
Authoritative match outcome.
Definition RTSTypes.h:1326
Complete RTS order projection snapshot; entity handles must be rebound by the owning domain.
Definition RTSTypes.h:388
One module-owned building snapshot with stable RTS relationships.
Definition RTSSnapshot.h:70
Building::Integrity integrity
Definition RTSSnapshot.h:80
Building::Placement placement
Definition RTSSnapshot.h:77
Building::IndirectFire indirectFire
Definition RTSSnapshot.h:99
std::vector< SubjectRef > reinforcements
Definition RTSSnapshot.h:88
std::vector< SubjectRef > builders
Definition RTSSnapshot.h:79
Building::Garrison garrison
Definition RTSSnapshot.h:92
OrderComponent::Snapshot orders
Building::Command command
Definition RTSSnapshot.h:98
Building::Infrastructure infrastructure
Definition RTSSnapshot.h:97
Building::Capture capture
Definition RTSSnapshot.h:82
std::vector< SubjectRef > occupants
Definition RTSSnapshot.h:93
std::map< std::string, SubjectRef > orderTargets
Building::Technology technology
Definition RTSSnapshot.h:96
RTSEffectSnapshot effects
Definition RTSSnapshot.h:75
Building::Construction construction
Definition RTSSnapshot.h:78
Building::Dropoff dropoff
Definition RTSSnapshot.h:84
std::vector< std::string > tags
Definition RTSSnapshot.h:74
Serializable in-memory RTS effect snapshot.
Definition RTSEffects.h:58
Faction-owned strategy, workforce, intelligence, technology, and stable membership.
Faction::Technology technology
Faction::Strategy strategy
Faction::ProductionPolicy productionPolicy
std::vector< SubjectRef > buildings
Faction::Workforce workforce
std::vector< SubjectRef > units
Match participant projection without process-local faction links.
Independent RTS match state and retained deterministic events.
std::vector< RTSMatchParticipantSnapshot > participants
Stable member identity and the exact command whose lifetime binds membership.
Stable pacing-group membership; entity handles and derived speed factors are excluded....
std::vector< Member > members
Player-local RTS selection; authority/economy/social providers remain external.
std::vector< SubjectRef > units
std::vector< SubjectRef > buildings
Complete in-flight RTS projectile state with stable gameplay relationships.
Definition RTSSystems.h:644
One module-owned resource-node snapshot with stable worker assignments.
ResourceNode::Position position
std::vector< SubjectRef > workers
Complete RTS-owned state; v2 adds movement groups, v1 imports with no groups. @cost Linear in saved e...
std::vector< RTSPlayerSnapshot > players
std::vector< RTSResourceNodeSnapshot > resourceNodes
std::vector< RTSUnitSnapshot > units
std::vector< RTSFactionSnapshot > factions
std::vector< RTSMatchSnapshot > matches
std::vector< RTSBuildingSnapshot > buildings
RTSProjectileSystemSnapshot projectiles
std::vector< RTSMovementGroupSnapshot > movementGroups
One module-owned unit snapshot; external provider links are intentionally excluded.
Definition RTSSnapshot.h:29
std::size_t containmentCapacity
Definition RTSSnapshot.h:52
Unit::Durability durability
Definition RTSSnapshot.h:43
Unit::Navigation navigation
Definition RTSSnapshot.h:38
Unit::Technology technology
Definition RTSSnapshot.h:64
Unit::Artillery artillery
Definition RTSSnapshot.h:59
RTSWorkerSnapshot worker
Definition RTSSnapshot.h:40
std::vector< std::string > tags
Definition RTSSnapshot.h:34
std::map< std::string, SubjectRef > orderTargets
Definition RTSSnapshot.h:66
Unit::Abilities abilities
Definition RTSSnapshot.h:49
OrderComponent::Snapshot orders
Definition RTSSnapshot.h:65
std::vector< SubjectRef > occupants
Definition RTSSnapshot.h:54
RTSEffectSnapshot effects
Definition RTSSnapshot.h:35
SubjectRef fireSupportRequester
Definition RTSSnapshot.h:60
attributes::AttributeProjectionSnapshot attributes
Definition RTSSnapshot.h:33
Unit::Veterancy veterancy
Definition RTSSnapshot.h:45
Persisted worker projection with stable references to its assignments.
Definition RTSSnapshot.h:16
Authoritative world position and interaction radius.
Definition RTSTypes.h:1086
Authoritative remaining resource stock.
Definition RTSTypes.h:1092
Ability cooldowns and an optional deterministic cast/channel in progress.
Definition RTSTypes.h:673
Indirect-fire deployment and deterministic area-fire policy.
Definition RTSTypes.h:740
Capture contribution while executing a Capture order.
Definition RTSTypes.h:689
RTS stance and pursuit limits used by automatic combat policies.
Definition RTSTypes.h:610
Command-network policy and derived connection state for a mobile unit or relay.
Definition RTSTypes.h:655
Canonical combat durability state consumed by combat::DamageRuntime.
Definition RTSTypes.h:631
Suppression, recovery, retreat policy, and friendly morale aura.
Definition RTSTypes.h:724
Authoritative kinematic state used by the phase-one move slice.
Definition RTSTypes.h:560
RTS projection of a canonical map path; the map provider remains the grid authority.
Definition RTSTypes.h:569
RTS shield layer consumed before canonical health damage and regenerated deterministically.
Definition RTSTypes.h:636
Tactical ammunition logistics; weapon ammunition remains authoritative in WeaponEntity.
Definition RTSTypes.h:699
Escort geometry and combat-group coordination state.
Definition RTSTypes.h:764
Upgrade ids already projected onto this unit, preventing repeated multiplicative application.
Definition RTSTypes.h:790
Persistent combat experience and deterministic veteran/elite modifiers.
Definition RTSTypes.h:644
Vision contribution projected into a faction-owned canonical map FOV provider.
Definition RTSTypes.h:586