Warship module entry (eve.Warship): hull/function catalogues, spawn, compartment remodel, helm orders, and frame update.
更多...
类 | |
| struct | CompartmentCell |
| One cell of a hull's compartment grid. 更多... | |
| struct | CompartmentFunctionDef |
| Compartment function catalogue entry. 更多... | |
| struct | CompartmentGrid |
| Rectangular compartment grid owned by a hull definition / entity. 更多... | |
| class | IWarshipMobility |
| Pluggable hull mobility (surface / sail / carrier / space / custom). 更多... | |
| struct | LayoutSeed |
| One default layout entry applied when a hull is spawned. 更多... | |
| class | Warship |
Warship module (eve.Warship). 更多... | |
| struct | WarshipCapabilities |
| Aggregated capabilities projected from the live compartment layout. 更多... | |
| struct | WarshipDefinition |
| Hull template registered through Warship::registerHullsFromJson. 更多... | |
| class | WarshipEntity |
| Warship short-root entity: huge hull + rearrangeable compartments. 更多... | |
| struct | WarshipEvent |
| One warship event (frame cache). 更多... | |
| class | WarshipRegistry |
| Process-level catalogues for hull templates and compartment functions. @ownership Registry owns the definition tables; WarshipEntity borrows pointers. @thread Owner / composition thread only (not concurrent). 更多... | |
| class | WarshipSystem |
| Behavior for WarshipEntity: layout projection, mobility, orders. 更多... | |
枚举 | |
| enum class | WarshipEventType : uint8_t { Arrived , LayoutChanged , Damaged , Destroyed , Underpowered } |
| Frame-buffered warship events for script polling. 更多... | |
函数 | |
| Module_IMPL (Warship, new Warship()) | |
| const char * | warshipEventTypeName (WarshipEventType type) |
| Stable event type protocol name. | |
| std::ostream & | operator<< (std::ostream &stream, WarshipEventType type) |
变量 | |
| constexpr const char * | kMobilitySurface = "surface" |
| Built-in mobility model names used by hull definitions. | |
| constexpr const char * | kMobilitySail = "sail" |
| constexpr const char * | kMobilityCarrier = "carrier" |
| constexpr const char * | kMobilitySpace = "space" |
| constexpr const char * | kCategoryWarship = "warship" |
| Documented hull category conventions (free string; not an enum). | |
| constexpr const char * | kCategorySailship = "sailship" |
| constexpr const char * | kCategoryCarrier = "carrier" |
| constexpr const char * | kCategoryStarship = "starship" |
详细描述
Warship module entry (eve.Warship): hull/function catalogues, spawn, compartment remodel, helm orders, and frame update.
Warship domain data: hull templates, compartment functions, and the WarshipEntity short root.
Design note: docs/dev/通用战舰系统设计.md
Analogous to vehicle, but the distinctive surface is a huge hull whose internal compartment grid can be rearranged. Occupied cells project thrust, power, hangar, weapons, crew, and sail capabilities. Behavior lives in WarshipSystem; this header holds pure data.
枚举类型说明
◆ WarshipEventType
|
strong |
Frame-buffered warship events for script polling.
| 枚举值 | |
|---|---|
| Arrived | |
| LayoutChanged | |
| Damaged | |
| Destroyed | |
| Underpowered | |
在文件 WarshipTypes.h 第 127 行定义.
函数说明
◆ Module_IMPL()
| eve::warship::Module_IMPL | ( | Warship | , |
| new | Warship() | ||
| ) |
◆ operator<<()
|
inline |
在文件 WarshipTypes.h 第 145 行定义.
引用了 type , 以及 warshipEventTypeName().
◆ warshipEventTypeName()
| EVENGINE_API_DOMAINS const char * eve::warship::warshipEventTypeName | ( | WarshipEventType | type | ) |
Stable event type protocol name.
- 返回
- Borrowed non-null pointer to process-lifetime storage. @ownership Not caller-owned; do not free. @lifetime Valid for the process lifetime. @thread Safe (immutable text). @reentrancy Does not invoke callbacks.
在文件 WarshipSystem.cpp 第 131 行定义.
引用了 Arrived, Damaged, Destroyed, LayoutChanged, type , 以及 Underpowered.
被这些函数引用 eve::warship::Warship::getEventType() , 以及 operator<<().
变量说明
◆ kCategoryCarrier
|
inlineconstexpr |
在文件 WarshipTypes.h 第 32 行定义.
◆ kCategorySailship
|
inlineconstexpr |
在文件 WarshipTypes.h 第 31 行定义.
◆ kCategoryStarship
|
inlineconstexpr |
在文件 WarshipTypes.h 第 33 行定义.
◆ kCategoryWarship
|
inlineconstexpr |
Documented hull category conventions (free string; not an enum).
在文件 WarshipTypes.h 第 30 行定义.
◆ kMobilityCarrier
|
inlineconstexpr |
在文件 WarshipTypes.h 第 26 行定义.
被这些函数引用 eve::warship::WarshipSystem::ensureBuiltinMobility().
◆ kMobilitySail
|
inlineconstexpr |
在文件 WarshipTypes.h 第 25 行定义.
被这些函数引用 eve::warship::WarshipSystem::ensureBuiltinMobility().
◆ kMobilitySpace
|
inlineconstexpr |
在文件 WarshipTypes.h 第 27 行定义.
被这些函数引用 eve::warship::WarshipSystem::ensureBuiltinMobility().
◆ kMobilitySurface
|
inlineconstexpr |
Built-in mobility model names used by hull definitions.
在文件 WarshipTypes.h 第 24 行定义.
被这些函数引用 eve::warship::WarshipSystem::ensureBuiltinMobility() , 以及 eve::warship::WarshipSystem::update().