Example #1
0
        public byte[] ToByteArray()
        {
            List <byte> result = new List <byte>(25);

            result.Add(PA);
            result.Add(MA);
            result.Add(Speed);
            result.Add(Move);
            result.Add(Jump);
            result.AddRange(PermanentStatuses.ToByteArray());
            result.AddRange(StatusImmunity.ToByteArray());
            result.AddRange(StartingStatuses.ToByteArray());
            result.Add(Absorb.ToByte());
            result.Add(Cancel.ToByte());
            result.Add(Half.ToByte());
            result.Add(Weak.ToByte());
            result.Add(Strong.ToByte());

            return(result.ToArray());
        }
Example #2
0
        public byte[] ToByteArray(Context context)
        {
            List <byte> result = new List <byte>(49);

            result.Add(SkillSet.Value);
            result.AddRange(InnateA.Offset.ToBytes());
            result.AddRange(InnateB.Offset.ToBytes());
            result.AddRange(InnateC.Offset.ToBytes());
            result.AddRange(InnateD.Offset.ToBytes());
            result.AddRange(Equipment.ToByteArray(context));
            result.Add(HPConstant);
            result.Add(HPMultiplier);
            result.Add(MPConstant);
            result.Add(MPMultiplier);
            result.Add(SpeedConstant);
            result.Add(SpeedMultiplier);
            result.Add(PAConstant);
            result.Add(PAMultiplier);
            result.Add(MAConstant);
            result.Add(MAMultiplier);
            result.Add(Move);
            result.Add(Jump);
            result.Add(CEvade);
            result.AddRange(PermanentStatus.ToByteArray());
            result.AddRange(StatusImmunity.ToByteArray());
            result.AddRange(StartingStatus.ToByteArray());
            result.Add(AbsorbElement.ToByte());
            result.Add(CancelElement.ToByte());
            result.Add(HalfElement.ToByte());
            result.Add(WeakElement.ToByte());
            result.Add(MPortrait);
            result.Add(MPalette);
            result.Add(MGraphic);

            return(result.ToArray());
        }