房间 ID 联合体
More...
#include <actor_example_match.h>
|
|
| nroomid (int32_t aid) |
| | 从 int32_t 构造房间 ID
|
|
| nroomid (pbexample::EPLAY_TYPE atype, int16_t aindex) |
| | 从玩法类型和房间索引构造房间 ID
|
|
int32_t | roomid () |
| | 获取完整的 int32_t 房间 ID
|
|
pbexample::EPLAY_TYPE | type () |
| | 获取玩法类型
|
|
int16_t | index () |
| | 获取房间索引
|
|
| operator int32_t () const |
| | 隐式转换为 int32_t
|
房间 ID 联合体
将 int32_t 房间 ID 拆分为高 16 位玩法类型和低 16 位房间索引, 提供从类型+索引或直接 int32_t 两种构造方式。
The documentation for this union was generated from the following file: