Пример #1
0
        public byte[] PatchACCE(CharacterMakingIndex cmx, byte[] cmxRaw)
        {
            List <byte> acceBytes = new List <byte>();

            foreach (var acceKey in cmx.accessoryDict.Keys)
            {
                acceBytes.AddRange(AquaObjectMethods.ConvertStruct(cmx.accessoryDict[acceKey].acce));
                acceBytes.AddRange(AquaObjectMethods.ConvertStruct(cmx.accessoryDict[acceKey].acce2));
            }
            Array.Copy(acceBytes.ToArray(), 0, cmxRaw, cmx.cmxTable.accessoryAddress, acceBytes.Count);

            return(cmxRaw);
        }
        public static byte[] GetBODYAsBytes(BODYObject body, bool postRetem = true)
        {
            List <byte> bodyBytes = new List <byte>();

            bodyBytes.AddRange(AquaObjectMethods.ConvertStruct(body.body));
            if (postRetem)
            {
                bodyBytes.AddRange(AquaObjectMethods.ConvertStruct(body.bodyRitem));
            }
            bodyBytes.AddRange(AquaObjectMethods.ConvertStruct(body.body2));

            return(bodyBytes.ToArray());
        }