GetBuffer() public method

public GetBuffer ( ) : byte[]
return byte[]
示例#1
0
 //解锁
 public void UnLock(bool isSendData = true)
 {
     mIsLock      = false;
     locktime     = 0;
     lastlocktime = System.Environment.TickCount;
     if (isSendData)
     {
         NetMsg.MsgLock msglock = new NetMsg.MsgLock();
         msglock.UnLock();
         msglock.id = this.GetTypeId();
         msglock.x  = GetCurrentX();
         msglock.y  = GetCurrentY();
         this.RefreshVisibleObject();
         this.GetGameMap().BroadcastBuffer(this, msglock.GetBuffer());
     }
 }
示例#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;
        }
示例#3
0
 //解锁
 public void UnLock(bool isSendData = true)
 {
     mIsLock = false;
     locktime = 0;
     lastlocktime = System.Environment.TickCount;
     if (isSendData)
     {
         NetMsg.MsgLock msglock = new NetMsg.MsgLock();
         msglock.UnLock();
         msglock.id = this.GetTypeId();
         msglock.x = GetCurrentX();
         msglock.y = GetCurrentY();
         this.RefreshVisibleObject();
         this.GetGameMap().BroadcastBuffer(this, msglock.GetBuffer());
     }
 }
示例#4
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;
        }