コード例 #1
0
 public override void Deserialize(IDataReader reader)
 {
     newLevel = reader.ReadSByte();
     if (newLevel < 0)
         throw new Exception("Forbidden value on newLevel = " + newLevel + ", it doesn't respect the following condition : newLevel < 0");
     jobsDescription = new Types.JobDescription();
     jobsDescription.Deserialize(reader);
 }
コード例 #2
0
 public override void Deserialize(ICustomDataInput reader)
 {
     newLevel = reader.ReadByte();
     if ((newLevel < 0) || (newLevel > 255))
     {
         throw new Exception("Forbidden value on newLevel = " + newLevel + ", it doesn't respect the following condition : (newLevel < 0) || (newLevel > 255)");
     }
     jobsDescription = new Types.JobDescription();
     jobsDescription.Deserialize(reader);
 }
コード例 #3
0
 public override void Deserialize(IDataReader reader)
 {
     var limit = reader.ReadUShort();
     jobsDescription = new Types.JobDescription[limit];
     for (int i = 0; i < limit; i++)
     {
          jobsDescription[i] = new Types.JobDescription();
          jobsDescription[i].Deserialize(reader);
     }
 }
コード例 #4
0
 public override void Deserialize(IDataReader reader)
 {
     newLevel = reader.ReadSByte();
     if (newLevel < 0 || newLevel > 255)
     {
         throw new Exception("Forbidden value on newLevel = " + newLevel + ", it doesn't respect the following condition : newLevel < 0 || newLevel > 255");
     }
     jobsDescription = new Types.JobDescription();
     jobsDescription.Deserialize(reader);
 }
コード例 #5
0
        public override void Deserialize(IDataReader reader)
        {
            var limit = reader.ReadUShort();

            jobsDescription = new Types.JobDescription[limit];
            for (int i = 0; i < limit; i++)
            {
                jobsDescription[i] = new Types.JobDescription();
                jobsDescription[i].Deserialize(reader);
            }
        }
コード例 #6
0
 public JobLevelUpMessage(sbyte newLevel, Types.JobDescription jobsDescription)
 {
     this.newLevel = newLevel;
     this.jobsDescription = jobsDescription;
 }
コード例 #7
0
 public JobLevelUpMessage(byte newLevel, Types.JobDescription jobsDescription)
 {
     this.newLevel        = newLevel;
     this.jobsDescription = jobsDescription;
 }
コード例 #8
0
 public override void Deserialize(IDataReader reader)
 {
     newLevel        = reader.ReadByte();
     jobsDescription = new Types.JobDescription();
     jobsDescription.Deserialize(reader);
 }