载入中...
搜索中...
未找到
eve::effects 命名空间参考

类

class  EffectContainer
 Owns active effect instances and their deterministic lifecycle events. 更多...
 
struct  EffectContainerHandleTag
 Owner tag for non-ECS effect-container handles. 更多...
 
struct  EffectDefinition
 Immutable-by-convention template used to create effect instances. 更多...
 
class  EffectDefinitionRuntime
 Binds a typed effect runtime to a generation-qualified definition. 更多...
 
struct  EffectEvent
 Deterministically sequenced effect lifecycle event. 更多...
 
class  EffectExecutor
 Executes lifecycle time progression for an EffectContainer. 更多...
 
struct  EffectHandle
 Generation-qualified local reference to a canonical effect instance. 更多...
 
struct  EffectInstance
 One owned runtime effect fact. 更多...
 
class  EffectPayload
 Deterministic JSON-compatible payload carried by a definition or instance. 更多...
 
struct  EffectPeriodicTick
 One periodic trigger handed to a domain executor for settlement. 更多...
 
struct  EffectPolicy
 Independent policy dimensions used when applying an effect definition. 更多...
 
struct  EffectRuntimeState
 Typed mutable lifecycle values for one effect instance. 更多...
 
class  Effects
 Script module factory for generic effect containers. 更多...
 
struct  EffectUpdateSummary
 Summary returned by the lifecycle executor after one simulation step. 更多...
 

类型定义

using EffectContainerHandleRef = eve::script::RuntimeHandleRef< EffectContainerHandleTag >
 Generation-qualified reference to a module-owned effect container.
 
using Effect = EffectInstance
 Backward-compatible name for the runtime instance type.
 

枚举

enum class  StackPolicy { Replace , Stack , Refresh }
 Compatibility policy used by the original effects facade. 更多...
 
enum class  StackMode { Replace , NewInstance , Reuse , Accumulate }
 Determines whether a matching application replaces, reuses, or creates an instance. 更多...
 
enum class  StackCountPolicy { Keep , Increment , Set }
 Determines how an application changes an existing stack count. 更多...
 
enum class  DurationPolicy { Keep , Replace , Extend }
 Determines how an application changes an existing remaining duration. 更多...
 
enum class  MagnitudePolicy { Keep , Replace , Add , Max }
 Determines how an application changes an existing magnitude value. 更多...
 
enum class  OverflowPolicy { Reject , Clamp , ReplaceOldest }
 Determines what happens when a stack-count limit would be exceeded. 更多...
 
enum class  EffectEventKind {
  Applied , Refreshed , Stacked , Periodic ,
  Expired , Removed
}
 Lifecycle event kind emitted by an effect container. 更多...
 

函数

 Module_IMPL (Effects, new Effects())
 
std::string policyName (StackPolicy policy)
 Returns the stable lowercase name of a legacy stack policy.
 
bool parsePolicy (const std::string &name, StackPolicy &policy)
 Parses a lowercase legacy stack policy name.
 
std::string eventKindName (EffectEventKind kind)
 Returns the stable lowercase name of an event kind.
 
std::ostream & operator<< (std::ostream &stream, EffectEventKind kind)
 Writes the stable lifecycle-event spelling to a stream.
 

类型定义说明

◆ Effect

Backward-compatible name for the runtime instance type.

在文件 EffectTypes.h 第 170 行定义.

◆ EffectContainerHandleRef

Generation-qualified reference to a module-owned effect container.

在文件 Effects.h 第 21 行定义.

枚举类型说明

◆ DurationPolicy

enum class eve::effects::DurationPolicy
strong

Determines how an application changes an existing remaining duration.

枚举值
Keep 
Replace 
Extend 

在文件 EffectTypes.h 第 37 行定义.

◆ EffectEventKind

enum class eve::effects::EffectEventKind
strong

Lifecycle event kind emitted by an effect container.

枚举值
Applied 
Refreshed 
Stacked 
Periodic 
Expired 
Removed 

在文件 EffectTypes.h 第 182 行定义.

◆ MagnitudePolicy

enum class eve::effects::MagnitudePolicy
strong

Determines how an application changes an existing magnitude value.

枚举值
Keep 
Replace 
Add 
Max 

在文件 EffectTypes.h 第 40 行定义.

◆ OverflowPolicy

enum class eve::effects::OverflowPolicy
strong

Determines what happens when a stack-count limit would be exceeded.

枚举值
Reject 
Clamp 
ReplaceOldest 

在文件 EffectTypes.h 第 43 行定义.

◆ StackCountPolicy

enum class eve::effects::StackCountPolicy
strong

Determines how an application changes an existing stack count.

枚举值
Keep 
Increment 
Set 

在文件 EffectTypes.h 第 34 行定义.

◆ StackMode

enum class eve::effects::StackMode
strong

Determines whether a matching application replaces, reuses, or creates an instance.

枚举值
Replace 
NewInstance 
Reuse 
Accumulate 

在文件 EffectTypes.h 第 31 行定义.

◆ StackPolicy

enum class eve::effects::StackPolicy
strong

Compatibility policy used by the original effects facade.

枚举值
Replace 
Stack 
Refresh 

在文件 EffectTypes.h 第 28 行定义.

函数说明

◆ eventKindName()

EVENGINE_API_FOUNDATION std::string eve::effects::eventKindName ( EffectEventKind  kind)

Returns the stable lowercase name of an event kind.

在文件 EffectTypes.cpp 第 120 行定义.

引用了 Applied, Expired, kind, Periodic, Refreshed, Removed , 以及 Stacked.

被这些函数引用 operator<<().

◆ Module_IMPL()

eve::effects::Module_IMPL ( Effects  ,
new   Effects() 
)

◆ operator<<()

std::ostream & eve::effects::operator<< ( std::ostream &  stream,
EffectEventKind  kind 
)
inline

Writes the stable lifecycle-event spelling to a stream.

在文件 EffectTypes.h 第 229 行定义.

引用了 eventKindName() , 以及 kind.

◆ parsePolicy()

bool eve::effects::parsePolicy ( const std::string &  name,
StackPolicy &  policy 
)

Parses a lowercase legacy stack policy name.

在文件 EffectTypes.cpp 第 108 行定义.

引用了 name, Refresh, Replace , 以及 Stack.

◆ policyName()

std::string eve::effects::policyName ( StackPolicy  policy)

Returns the stable lowercase name of a legacy stack policy.

在文件 EffectTypes.cpp 第 99 行定义.

引用了 Refresh, Replace , 以及 Stack.