Lock() public method

public Lock ( ) : void
return void
Esempio n. 1
0
        public void Lock(int time, bool isSendData = true)
        {
            locktime     = time;
            lastlocktime = System.Environment.TickCount;
            if (isSendData)
            {
                NetMsg.MsgLock msglock = new NetMsg.MsgLock();
                msglock.Lock();
                msglock.id = this.GetTypeId();
                msglock.x  = GetCurrentX();
                msglock.y  = GetCurrentY();
                this.GetGameMap().BroadcastBuffer(this, msglock.GetBuffer());
            }

            mIsLock = true;
        }
Esempio n. 2
0
        public void Lock(int time,bool isSendData = true)
        {
            locktime = time;
            lastlocktime = System.Environment.TickCount;
            if (isSendData)
            {
                NetMsg.MsgLock msglock = new NetMsg.MsgLock();
                msglock.Lock();
                msglock.id = this.GetTypeId();
                msglock.x = GetCurrentX();
                msglock.y = GetCurrentY();
                this.GetGameMap().BroadcastBuffer(this, msglock.GetBuffer());
            }

            mIsLock = true;
        }