载入中...
搜索中...
未找到
CarrierRecipeCodec.h 文件参考

Decode/encode CombatCarrier recipes from canonical eve::Value trees. 更多...

#include "common/Export.h"
#include "common/Result.h"
#include "common/Value.h"
#include "weapon/CombatCarrier.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::weapon
 载具模块入口(eve.Vehicle):定义注册 / 实体工厂 / RTS 命令 / 帧调度。 设计文档:docs/dev/通用载具系统设计.md
 

函数

Result< CarrierRecipe > eve::weapon::decodeCarrierRecipe (const Value &value)
 Decode one CarrierRecipe from an owning Value object.
 
Result< Value > eve::weapon::encodeCarrierRecipe (const CarrierRecipe &recipe)
 Encode one CarrierRecipe into an owning Value object (full form).
 

详细描述

Decode/encode CombatCarrier recipes from canonical eve::Value trees.

Script and tools share this codec so JSON and Squirrel tables produce the same CarrierRecipe. Two input shapes are accepted:

  1. Full form: motion/triggers/impacts arrays with explicit kinds.
  2. Preset form: convenience fields (damage, pierce, bounce, fuse, homing, …) that expand into a validated default composition.

在文件 CarrierRecipeCodec.h 中定义.