コード例 #1
0
        public void EndInit()
        {
            this.Type = EnumHelper.FromString <SceneType>(this.SceneType);
            InstanceIdStruct instanceIdStruct = new InstanceIdStruct(this.Process, (uint)this.Id);

            this.SceneId = instanceIdStruct.ToLong();
        }
コード例 #2
0
        public static long GenerateInstanceId()
        {
            InstanceIdStruct instanceIdStruct = new InstanceIdStruct(appId, ++instanceIdValue);

            return(instanceIdStruct.ToLong());
        }
コード例 #3
0
        public static long GenerateInstanceId()
        {
            InstanceIdStruct instanceIdStruct = new InstanceIdStruct(process, ++MaxConfigSceneId);

            return(instanceIdStruct.ToLong());
        }
コード例 #4
0
        // Scene的InstanceId跟Id一样
        public static long GenerateProcessSceneId()
        {
            InstanceIdStruct instanceIdStruct = new InstanceIdStruct(process, 0);

            return(instanceIdStruct.ToLong());
        }