public function Decode($buf = '') { $this->buffer = new CodeEngine($buf); $this->Uin = $this->buffer->DecodeInt32(); $this->MessageID = $this->buffer->DecodeInt32(); $this->Count = $this->buffer->DecodeInt8(); $tmp = new SystemMessage(); if (strlen($this->buffer) > 0) { $this->SystemMessage[] = $tmp->Decode($this->buffer); } return $this; }
public function Decode($buf = '') { $this->buffer = new CodeEngine($buf); $this->RoomID = $this->buffer->DecodeInt32(); $this->PushTrigger = $this->buffer->DecodeInt8(); $this->MessageIndex = $this->buffer->DecodeInt8(); $this->GameID = $this->buffer->DecodeInt16(); $this->MessageID = $this->buffer->DecodeInt32(); $this->Count = $this->buffer->DecodeInt8(); $tmp = new SystemMessage(); if (strlen($this->buffer) > 0) { $this->SystemMessages[] = $tmp->Decode($this->buffer); } return $this; }