示例#1
0
        public List <byte> ToBytes(short size)
        {
            List <byte> bytes = WriteBytesConverter.NullTerminatedStringToBytes(tableRowType);

            bytes.AddRange(WriteBytesConverter.NumericToBytes(size));
            return(bytes);
        }
示例#2
0
        public override List <byte> ToBytes()
        {
            List <byte> bytes = new List <byte>();

            bytes.AddRange(WriteBytesConverter.NumericToBytes(ID));
            bytes.AddRange(WriteBytesConverter.NumericToBytes(OwnerID));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(TargetingType));
            bytes.Add((byte)type); bytes.Add((byte)ActionIntent); bytes.Add((byte)Element);
            bytes.Add(forAltAttackMode); bytes.Add((byte)SelectionType);
            bytes.AddRange(WriteBytesConverter.NumericToBytes(MaxRangeRadius)); bytes.Add(SelectionRadius);
            bytes.AddRange(WriteBytesConverter.NumericToBytes(unusedField2));
            bytes.AddRange(WriteBytesConverter.NumericToBytes((long)signatureType));
            foreach (RegStatusEffect statusEffect in StatusEffects)
            {
                bytes.AddRange(statusEffect.ToBytes());
            }
            bytes.Add(CastTime); bytes.Add(Delay); bytes.AddRange(WriteBytesConverter.NumericToBytes(Cost));
            bytes.Add(Unbalance); bytes.AddRange(WriteBytesConverter.NumericToBytes((short)BreakDamage));
            bytes.Add(LevelUnlocked); bytes.AddRange(WriteBytesConverter.NumericToBytes(MenuSortOrder));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(AnimationName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(Name));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(Description));
            bytes.InsertRange(0, ToBytes((short)bytes.Count));
            return(bytes);
        }
        public override List <byte> ToBytes()
        {
            List <byte> bytes = new List <byte>();

            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(charName));
            bytes.AddRange(strangeField);
            bytes.InsertRange(0, ToBytes((short)bytes.Count));
            return(bytes);
        }
        public override List <byte> ToBytes()
        {
            List <byte> bytes = new List <byte>();

            bytes.AddRange(WriteBytesConverter.NumericToBytes(OwnerID));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(OverworldName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(CName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(AnimationName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(FaceCName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(FaceAnimationName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(Name));
            bytes.AddRange(strangeField);
            bytes.InsertRange(0, ToBytes((short)bytes.Count));
            return(bytes);
        }
        public override List <byte> ToBytes()
        {
            List <byte> bytes = new List <byte>();

            bytes.AddRange(WriteBytesConverter.NumericToBytes(OwnerID));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(PName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(cName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(aniFilename));
            bytes.AddRange(WriteBytesConverter.NumericToBytes(unknownFloat1));
            bytes.AddRange(WriteBytesConverter.NumericToBytes(unknownFloat2));
            bytes.AddRange(WriteBytesConverter.NumericToBytes(unknownFloat3));
            bytes.AddRange(WriteBytesConverter.NumericToBytes(unknownFloat4));
            bytes.AddRange(WriteBytesConverter.NumericToBytes(unknownFloat5));
            bytes.AddRange(WriteBytesConverter.NumericToBytes(unknownFloat6));
            bytes.AddRange(WriteBytesConverter.NumericToBytes(unknownFloat7));
            bytes.AddRange(strangeField);
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(flags));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(OwnerName));
            bytes.AddRange(WriteBytesConverter.NullTerminatedStringToBytes(recordSuffix));
            bytes.InsertRange(0, ToBytes((short)bytes.Count));
            return(bytes);
        }