载入中...
搜索中...
未找到
eve::event::Variant结构体 参考
#include <Event.h>
Public 类型 | |
| enum class | Type { Nil , Int , String , Ptr } |
静态 Public 成员函数 | |
| static Variant | makeNil () |
| Constructs a nil variant. | |
| static Variant | makeInt (int64_t v) |
| Constructs an integer variant. | |
| static Variant | makeString (std::string v) |
| Constructs a string variant (takes ownership of the value). | |
| static Variant | makePtr (void *v) |
| Constructs a pointer variant (borrowed, not owned). | |
Public 属性 | |
| Type | type = Type::Nil |
| int64_t | i = 0 |
| std::string | s |
| void * | p = nullptr |
详细描述
成员枚举类型说明
◆ Type
|
strong |
成员函数说明
◆ makeInt()
|
inlinestatic |
Constructs an integer variant.
被这些函数引用 eve::physics::World3D::emitContactEvents(), eve::physics::World::onBeginContact() , 以及 eve::physics::World::onEndContact().
◆ makeNil()
|
inlinestatic |
◆ makePtr()
|
inlinestatic |
◆ makeString()
|
inlinestatic |
类成员变量说明
◆ i
◆ p
◆ s
◆ type
被这些函数引用 makeInt(), makePtr() , 以及 makeString().
该结构体的文档由以下文件生成:
- src/modules/event/Event.h