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

Common identity and hot-reload contract for typed runtime instances. 更多...

#include "common/Export.h"
#include "common/Generation.h"
#include "common/ResourceRef.h"
#include "common/Result.h"
#include <cstdint>
#include <exception>
#include <functional>
#include <memory>
#include <string>
#include <type_traits>
#include <utility>

浏览源代码.

类

struct  eve::definition::DefinitionHandle
 A generation-qualified reference to one definition incarnation. 更多...
 
struct  eve::definition::InstanceIdentity
 Canonical identity carried by every typed runtime instance. 更多...
 
struct  eve::definition::ReloadOutcome
 Identity transition emitted by a typed runtime reload operation. 更多...
 
class  eve::definition::RuntimeInstanceCore
 Type-erased bookkeeping shared by every RuntimeInstance<State>. 更多...
 
class  eve::definition::RuntimeInstance< State >
 Owns one strongly typed runtime state and its definition identity. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::definition
 

枚举

enum class  eve::definition::ReloadPolicy : std::uint8_t { eve::definition::KeepInstanceValues , eve::definition::ReapplyDefaults , eve::definition::RebuildInstance , eve::definition::RejectWhileActive }
 Policy used when a live definition is replaced. 更多...
 
enum class  eve::definition::ReloadDisposition : std::uint8_t { eve::definition::Unchanged , eve::definition::Kept , eve::definition::DefaultsReapplied , eve::definition::Rebuilt }
 Observable result of a successful or no-op definition reload. 更多...
 

函数

const char * eve::definition::reloadPolicyName (ReloadPolicy policy) noexcept
 Stable spelling for a runtime definition reload policy.
 
template<class State >
void * eve::definition::cloneRuntimeState (const void *state)
 Payload operations for one state type; used by RuntimeInstance<State>.
 
template<class State >
void eve::definition::assignRuntimeState (void *destination, const void *source)
 Payload assignment for one state type.
 
template<class State >
void eve::definition::destroyRuntimeState (void *state) noexcept
 Payload destruction for one state type.
 

详细描述

Common identity and hot-reload contract for typed runtime instances.

Definitions are immutable, replaceable authoring data. Runtime instances own mutable state and keep an explicit link to the definition incarnation from which that state was built. This header contains only the neutral contract; a gameplay module supplies its own strongly typed state and definition parser.

在文件 DefinitionRuntime.h 中定义.