载入中...
搜索中...
未找到
Lightning.h 文件参考
#include <cstdint>
#include <memory>
#include <vector>
#include "common/Export.h"
#include "common/Result.h"

浏览源代码.

类

struct  eve::weather::LightningSettings
 Copied preparation settings. Width and displacement are world units, independent of endpoint distance. 更多...
 
struct  eve::weather::LightningGeometry
 Owned CPU crossed ribbons along local +Y in [0,1]; no graphics dependency. 更多...
 
class  eve::weather::Lightning
 Independently owned, pooled visual effect; main/render thread only, no callbacks or gameplay damage. Graphics resources and an internal generation-checked render entity are retired in either destruction order. Endpoint positions are copied; no weapon pointer is retained. Recreate after reload/provider retirement. 更多...
 

命名空间

namespace  ssq
 EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
 
namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::graphics
 卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局参数。 数据模型与渲染/交互逻辑见 CardTypes.h。
 
namespace  eve::weather
 

函数

EVENGINE_API_ORCHESTRATION Result< void > eve::weather::validateLightning (const LightningSettings &settings)
 Validate bounded finite settings without modifying live instances.
 
EVENGINE_API_ORCHESTRATION Result< LightningGeometry > eve::weather::buildLightningGeometry (const LightningSettings &settings, unsigned variant)
 Deterministic CPU preparation, explicit variant stream; identical inputs give identical geometry on one platform. @cost Linear in 2^subdivisions plus branch count; prepare once per pooled variant, never per frame.
 
EVENGINE_API_ORCHESTRATION float eve::weather::lightningEnvelope (float age)
 Weather return-stroke envelope, normalized age [0,1]; side-effect free.
 
void eve::weather::exposeLightning (ssq::Table &table, ssq::Class &weather)
 Register preparation/settings and owned Lightning methods on Weather.