public void Encode(NetOutgoingMessage om) { om.Write(this.Username); om.Write(this.Password); om.Write((short)this.Hue); }