GameFramework.Observer.SetKey C# (CSharp) Method

SetKey() private method

private SetKey ( uint key ) : bool
key uint
return bool
        internal bool SetKey(uint key)
        {
            return peer_.SetKey(key);
        }

Usage Example

示例#1
0
        public bool AddObserver(ulong guid, string name, uint key)
        {
            bool     ret      = false;
            Observer observer = GetUnusedObserver();

            if (null != observer)
            {
                observer.IsIdle = false;
                observer.Guid   = guid;
                observer.Name   = name;
                observer.SetKey(key);
                ret = true;
            }
            return(ret);
        }