예제 #1
0
파일: Nick.cs 프로젝트: Rampant-ai/Senesco
      internal override void ParseBytes(byte[] objectData)
      {
         int index = 0;
         string nick = DataUtils.ReadString(objectData, ref index, objectData.Length);

         Value = new NormalString(nick);
         this.ObjectDataList.Add(Value);
      }
예제 #2
0
      public UserListEntry(int socket, int icon, int status, string nick)
      {
         Socket = new Short(socket);
         Icon = new Short(icon);
         Status = new Short(status);
         NickLength = new Short(nick.Length);
         Nick = new NormalString(nick);

         this.ObjectDataList.Add(Socket);
         this.ObjectDataList.Add(Icon);
         this.ObjectDataList.Add(Status);
         this.ObjectDataList.Add(NickLength);
         this.ObjectDataList.Add(Nick);
      }
예제 #3
0
      internal override void ParseBytes(byte[] objectData)
      {
         int index = 0;

         int socket = DataUtils.ReadShort(objectData, ref index);
         int icon = DataUtils.ReadShort(objectData, ref index);
         int status = DataUtils.ReadShort(objectData, ref index);
         int nickLength = DataUtils.ReadShort(objectData, ref index);
         string nick = DataUtils.ReadString(objectData, ref index, nickLength);

         Socket = new Short(socket);
         Icon = new Short(icon);
         Status = new Short(status);
         NickLength = new Short(nickLength);
         Nick = new NormalString(nick);

         this.ObjectDataList.Add(Socket);
         this.ObjectDataList.Add(Icon);
         this.ObjectDataList.Add(Status);
         this.ObjectDataList.Add(NickLength);
         this.ObjectDataList.Add(Nick);
      }
예제 #4
0
파일: Nick.cs 프로젝트: Rampant-ai/Senesco
 public Nick(string nick)
 {
    Value = new NormalString(nick);
    this.ObjectDataList.Add(Value);
 }
예제 #5
0
 public Message(string message)
 {
    Value = new NormalString(message);
    this.ObjectDataList.Add(Value);
 }