Ejemplo n.º 1
0
        public static FlverDummy Read(DSBinaryReader bin, DataFiles.FLVER ContainingFlver)
        {
            var dmy = new FlverDummy(ContainingFlver);

            dmy.Position      = bin.ReadVector3();
            dmy.UnknownByte1  = bin.ReadByte();
            dmy.UnknownByte2  = bin.ReadByte();
            dmy.UnknownShort1 = bin.ReadInt16();

            dmy.Row2            = bin.ReadVector3();
            dmy.TypeID          = bin.ReadInt16();
            dmy.ParentBoneIndex = bin.ReadInt16();

            dmy.Row3 = bin.ReadVector3();
            dmy.SomeSortOfParentIndex = bin.ReadInt16();
            dmy.UnknownFlag1          = bin.ReadBoolean();
            dmy.UnknownFlag2          = bin.ReadBoolean();

            //hit.Row4 = bin.ReadVector3();
            //hit.Row4_ID1 = bin.ReadInt16();
            //hit.Row4_ID2 = bin.ReadInt16();

            bin.ReadBytes(16);

            return(dmy);
        }
Ejemplo n.º 2
0
        public static void Write(DSBinaryWriter bin, FlverDummy dmy)
        {
            bin.Write(dmy.Position);
            bin.Write(dmy.UnknownByte1);
            bin.Write(dmy.UnknownByte2);
            bin.Write(dmy.UnknownShort1);

            bin.Write(dmy.Row2);
            bin.Write(dmy.TypeID);
            bin.Write(dmy.ParentBoneIndex);

            bin.Write(dmy.Row3);
            bin.Write(dmy.SomeSortOfParentIndex);
            bin.Write(dmy.UnknownFlag1);
            bin.Write(dmy.UnknownFlag2);

            //bin.Write(hit.Row4);
            //bin.Write(hit.Row4_ID1);
            //bin.Write(hit.Row4_ID2);

            bin.Write(new byte[16]);
        }