类 | |
| struct | EdgeCurvePayload |
| Owning curve group and all exact members, shared by runtime and editor persistence. 更多... | |
函数 | |
| Value | stringArray (const std::vector< std::string > &values) |
| Value | numberArray (const std::vector< double > &values) |
| std::vector< std::string > | parseStringArray (const Value &value, bool &valid) |
| Value | instanceValue (const BuildingInstanceSnapshot &instance) |
| Encode a complete owning instance; pure, caller-thread, linear in instance metadata. | |
| const Value * | field (const Value &value, const char *key) |
| Borrow an optional object field. | |
| Result< BuildingInstanceSnapshot > | parseInstance (const Value &value) |
| Decode legacy/current instance fields without mutating a world; owning result. | |
| Result< std::vector< BuildingInstanceSnapshot > > | parseInstances (const Value &value) |
| Decode a nonempty instance batch with unique identities; pure owning result. | |
| BuildingInstanceSnapshot | snapshot (const PlacedBuilding &placed) |
| Copy a runtime instance into its canonical owning persistence record. | |
| building::PlacedBuilding | runtime (const BuildingInstanceSnapshot &value) |
| Decode a previously validated snapshot into an owning runtime candidate. | |
| Value | edgeCurveValue (const EdgeCurveGroup &group, const std::vector< BuildingInstanceSnapshot > &instances) |
| Encode one complete curve group in linear time; no world mutation. | |
| Result< EdgeCurvePayload > | parseEdgeCurve (const Value &value) |
| Decode one complete curve with structured failure and independent ownership. | |
函数说明
◆ edgeCurveValue()
| EVENGINE_API_WORLD Value eve::building::codec::edgeCurveValue | ( | const building::EdgeCurveGroup & | group, |
| const std::vector< BuildingInstanceSnapshot > & | instances | ||
| ) |
Encode one complete curve group in linear time; no world mutation.
在文件 BuildingSnapshot.cpp 第 352 行定义.
引用了 edgeCurveValue(), group, instanceValue(), numberArray(), point , 以及 values.
被这些函数引用 eve::building_editing::target_detail::edgeCurveValue() , 以及 edgeCurveValue().
◆ field()
Borrow an optional object field.
- 返回
- Borrowed pointer owned by value, or null. @lifetime Valid until value is mutated or destroyed; never retained by codecs. @thread Caller thread; no callbacks or mutation.
在文件 BuildingSnapshot.cpp 第 96 行定义.
引用了 field(), found, key , 以及 value.
被这些函数引用 field(), parseEdgeCurve() , 以及 parseInstance().
◆ instanceValue()
| EVENGINE_API_WORLD Value eve::building::codec::instanceValue | ( | const BuildingInstanceSnapshot & | instance | ) |
Encode a complete owning instance; pure, caller-thread, linear in instance metadata.
在文件 BuildingSnapshot.cpp 第 52 行定义.
引用了 eve::building::BuildingInstanceSnapshot::garrison, key, member, eve::building::BuildingInstanceSnapshot::properties, properties , 以及 value.
被这些函数引用 edgeCurveValue() , 以及 eve::building_editing::target_detail::instanceValue().
◆ numberArray()
| Value eve::building::codec::numberArray | ( | const std::vector< double > & | values | ) |
◆ parseEdgeCurve()
| EVENGINE_API_WORLD Result< EdgeCurvePayload > eve::building::codec::parseEdgeCurve | ( | const Value & | value | ) |
Decode one complete curve with structured failure and independent ownership.
在文件 BuildingSnapshot.cpp 第 377 行定义.
引用了 field(), frame, eve::Value::getIf(), eve::building::codec::EdgeCurvePayload::group, eve::building::EdgeCurveGroup::id, index, level, number, parseEdgeCurve(), parseInstances(), point, provider, result, revision, text, value, x , 以及 y.
被这些函数引用 eve::building_editing::target_detail::parseEdgeCurve() , 以及 parseEdgeCurve().
◆ parseInstance()
| EVENGINE_API_WORLD Result< BuildingInstanceSnapshot > eve::building::codec::parseInstance | ( | const Value & | value | ) |
Decode legacy/current instance fields without mutating a world; owning result.
在文件 BuildingSnapshot.cpp 第 103 行定义.
引用了 count, elevation, field(), id, eve::building::BuildingInstanceSnapshot::instanceId, instanceId, key, level, n, number, numbers, parseInstance(), parseStringArray(), properties, result, rotation, string, tags, text, type, valid, value , 以及 vertices.
被这些函数引用 eve::building_editing::target_detail::parseInstance(), parseInstance() , 以及 parseInstances().
◆ parseInstances()
| EVENGINE_API_WORLD Result< std::vector< BuildingInstanceSnapshot > > eve::building::codec::parseInstances | ( | const Value & | value | ) |
Decode a nonempty instance batch with unique identities; pure owning result.
在文件 BuildingSnapshot.cpp 第 246 行定义.
引用了 ids, parseInstance(), parseInstances(), result, value , 以及 values.
被这些函数引用 parseEdgeCurve(), eve::building_editing::target_detail::parseInstances() , 以及 parseInstances().
◆ parseStringArray()
| std::vector< std::string > eve::building::codec::parseStringArray | ( | const Value & | value, |
| bool & | valid | ||
| ) |
在文件 BuildingSnapshot.cpp 第 34 行定义.
引用了 result, text, valid, value , 以及 values.
被这些函数引用 parseInstance().
◆ runtime()
| EVENGINE_API_WORLD PlacedBuilding eve::building::codec::runtime | ( | const BuildingInstanceSnapshot & | value | ) |
Decode a previously validated snapshot into an owning runtime candidate.
在文件 BuildingSnapshot.cpp 第 311 行定义.
引用了 eve::building::PlacedBuilding::instanceId, member, result , 以及 value.
◆ snapshot()
| EVENGINE_API_WORLD BuildingInstanceSnapshot eve::building::codec::snapshot | ( | const building::PlacedBuilding & | placed | ) |
Copy a runtime instance into its canonical owning persistence record.
在文件 BuildingSnapshot.cpp 第 270 行定义.
引用了 eve::building::BuildingInstanceSnapshot::instanceId, member, placed, result , 以及 snapshot.