コード例 #1
0
 public DictSkill(ulong id, ulong stamp, ulong aosID, AOESearch aosDict, ushort aosType, ulong aoeID, AOESearch aoeDict, double delay, double interval, double keep, double cd, double hpAdd, double hpAddScaleRemanent, double hpAddScaleLost, ulong propID, double dstTeleport, double selfTeleport, double dstMoveTime, double dstMoveSpeed, double selfMoveTime, double selfMoveSpeed, DictArrayKey appendBuffs, string appendBuffsText, ulong appendBuffsAreaID, AOESearch appendBuffsAreaDict, DictArrayKey harmBuffs, string harmBuffsText, DictArrayKey combSkills, string combSkillsText, DictArrayKey followSkills, string followSkillsText, string desc)
 {
     this.id                  = id;
     this.stamp               = stamp;
     this.aosID               = aosID;
     this.aosDict             = aosDict;
     this.aosType             = aosType;
     this.aoeID               = aoeID;
     this.aoeDict             = aoeDict;
     this.delay               = delay;
     this.interval            = interval;
     this.keep                = keep;
     this.cd                  = cd;
     this.hpAdd               = hpAdd;
     this.hpAddScaleRemanent  = hpAddScaleRemanent;
     this.hpAddScaleLost      = hpAddScaleLost;
     this.propID              = propID;
     this.dstTeleport         = dstTeleport;
     this.selfTeleport        = selfTeleport;
     this.dstMoveTime         = dstMoveTime;
     this.dstMoveSpeed        = dstMoveSpeed;
     this.selfMoveTime        = selfMoveTime;
     this.selfMoveSpeed       = selfMoveSpeed;
     this.appendBuffs         = appendBuffs;
     this.appendBuffsText     = appendBuffsText;
     this.appendBuffsAreaID   = appendBuffsAreaID;
     this.appendBuffsAreaDict = appendBuffsAreaDict;
     this.harmBuffs           = harmBuffs;
     this.harmBuffsText       = harmBuffsText;
     this.combSkills          = combSkills;
     this.combSkillsText      = combSkillsText;
     this.followSkills        = followSkills;
     this.followSkillsText    = followSkillsText;
     this.desc                = desc;
 }
コード例 #2
0
 public DictSkill()
 {
     id                  = 0;
     stamp               = 0;
     aosID               = 0;
     aosDict             = new AOESearch();
     aosType             = 0;
     aoeID               = 0;
     aoeDict             = new AOESearch();
     delay               = 0.0;
     interval            = 0.0;
     keep                = 0.0;
     cd                  = 0.0;
     hpAdd               = 0.0;
     hpAddScaleRemanent  = 0.0;
     hpAddScaleLost      = 0.0;
     propID              = 0;
     dstTeleport         = 0.0;
     selfTeleport        = 0.0;
     dstMoveTime         = 0.0;
     dstMoveSpeed        = 0.0;
     selfMoveTime        = 0.0;
     selfMoveSpeed       = 0.0;
     appendBuffs         = new DictArrayKey();
     appendBuffsText     = "";
     appendBuffsAreaID   = 0;
     appendBuffsAreaDict = new AOESearch();
     harmBuffs           = new DictArrayKey();
     harmBuffsText       = "";
     combSkills          = new DictArrayKey();
     combSkillsText      = "";
     followSkills        = new DictArrayKey();
     followSkillsText    = "";
     desc                = "";
 }
コード例 #3
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.id      = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     this.stamp   = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     this.aosID   = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     this.aosDict = new AOESearch();
     this.aosDict.__decode(binData, ref pos);
     this.aosType = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos);
     this.aoeID   = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     this.aoeDict = new AOESearch();
     this.aoeDict.__decode(binData, ref pos);
     this.delay              = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.interval           = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.keep               = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.cd                 = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.hpAdd              = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.hpAddScaleRemanent = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.hpAddScaleLost     = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.propID             = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     this.dstTeleport        = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.selfTeleport       = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.dstMoveTime        = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.dstMoveSpeed       = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.selfMoveTime       = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.selfMoveSpeed      = Proto4z.BaseProtoObject.decodeDouble(binData, ref pos);
     this.appendBuffs        = new DictArrayKey();
     this.appendBuffs.__decode(binData, ref pos);
     this.appendBuffsText     = Proto4z.BaseProtoObject.decodeString(binData, ref pos);
     this.appendBuffsAreaID   = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos);
     this.appendBuffsAreaDict = new AOESearch();
     this.appendBuffsAreaDict.__decode(binData, ref pos);
     this.harmBuffs = new DictArrayKey();
     this.harmBuffs.__decode(binData, ref pos);
     this.harmBuffsText = Proto4z.BaseProtoObject.decodeString(binData, ref pos);
     this.combSkills    = new DictArrayKey();
     this.combSkills.__decode(binData, ref pos);
     this.combSkillsText = Proto4z.BaseProtoObject.decodeString(binData, ref pos);
     this.followSkills   = new DictArrayKey();
     this.followSkills.__decode(binData, ref pos);
     this.followSkillsText = Proto4z.BaseProtoObject.decodeString(binData, ref pos);
     this.desc             = Proto4z.BaseProtoObject.decodeString(binData, ref pos);
     return(pos);
 }
コード例 #4
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.id));
            data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.stamp));
            data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.aosID));
            if (this.aosDict == null)
            {
                this.aosDict = new AOESearch();
            }
            data.AddRange(this.aosDict.__encode());
            data.AddRange(Proto4z.BaseProtoObject.encodeUI16(this.aosType));
            data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.aoeID));
            if (this.aoeDict == null)
            {
                this.aoeDict = new AOESearch();
            }
            data.AddRange(this.aoeDict.__encode());
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.delay));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.interval));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.keep));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.cd));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.hpAdd));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.hpAddScaleRemanent));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.hpAddScaleLost));
            data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.propID));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.dstTeleport));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.selfTeleport));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.dstMoveTime));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.dstMoveSpeed));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.selfMoveTime));
            data.AddRange(Proto4z.BaseProtoObject.encodeDouble(this.selfMoveSpeed));
            if (this.appendBuffs == null)
            {
                this.appendBuffs = new DictArrayKey();
            }
            data.AddRange(this.appendBuffs.__encode());
            data.AddRange(Proto4z.BaseProtoObject.encodeString(this.appendBuffsText));
            data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.appendBuffsAreaID));
            if (this.appendBuffsAreaDict == null)
            {
                this.appendBuffsAreaDict = new AOESearch();
            }
            data.AddRange(this.appendBuffsAreaDict.__encode());
            if (this.harmBuffs == null)
            {
                this.harmBuffs = new DictArrayKey();
            }
            data.AddRange(this.harmBuffs.__encode());
            data.AddRange(Proto4z.BaseProtoObject.encodeString(this.harmBuffsText));
            if (this.combSkills == null)
            {
                this.combSkills = new DictArrayKey();
            }
            data.AddRange(this.combSkills.__encode());
            data.AddRange(Proto4z.BaseProtoObject.encodeString(this.combSkillsText));
            if (this.followSkills == null)
            {
                this.followSkills = new DictArrayKey();
            }
            data.AddRange(this.followSkills.__encode());
            data.AddRange(Proto4z.BaseProtoObject.encodeString(this.followSkillsText));
            data.AddRange(Proto4z.BaseProtoObject.encodeString(this.desc));
            return(data);
        }