RuntimeIdStruct 结构
程序集: Fantasy.Net.dll
语法
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct RuntimeIdStruct
构造函数
|
编辑本文
查看源代码
RuntimeIdStruct(uint, uint, byte, uint)
RuntimeIdStruct(如果超过下面参数的设定该ID会失效)。
声明
public RuntimeIdStruct(uint time, uint sceneId, byte wordId, uint sequence)
参数
类型 |
名称 |
描述 |
uint |
time |
time不能超过8388607
|
uint |
sceneId |
sceneId不能超过255
|
byte |
wordId |
wordId不能超过255
|
uint |
sequence |
sequence不能超过33554431
|
字段
|
编辑本文
查看源代码
MaskSceneId
声明
public const uint MaskSceneId = 255
字段值
|
编辑本文
查看源代码
MaskSequence
声明
public const uint MaskSequence = 33554431
字段值
|
编辑本文
查看源代码
MaskTime
声明
public const uint MaskTime = 8388607
字段值
|
编辑本文
查看源代码
MaskWordId
声明
public const uint MaskWordId = 255
字段值
属性
|
编辑本文
查看源代码
SceneId
声明
public readonly uint SceneId { get; }
属性值
|
编辑本文
查看源代码
Sequence
声明
public readonly uint Sequence { get; }
属性值
|
编辑本文
查看源代码
Time
声明
public readonly uint Time { get; }
属性值
|
编辑本文
查看源代码
WordId
声明
public readonly byte WordId { get; }
属性值
运算符
|
编辑本文
查看源代码
implicit operator long(RuntimeIdStruct)
声明
public static implicit operator long(RuntimeIdStruct runtimeIdStruct)
参数
返回
|
编辑本文
查看源代码
implicit operator RuntimeIdStruct(long)
声明
public static implicit operator RuntimeIdStruct(long runtimeId)
参数
返回
扩展方法