コード例 #1
0
		public static string PrintSittingAnimation(SittingAnimationItem sa) {
			StringBuilder sb = new StringBuilder();
			sb.AppendLine("ChairRelated\t" + sa.HasSittingAnimation + " sitting data count(0:1)");
			if (sa.HasSittingAnimation != 0) {
				sb.AppendLine("Unk\t" + sa.unk1 + " " + sa.unk2 + " " + sa.unk3 + " " + sa.unk4);
			}
			return sb.ToString();
		}
コード例 #2
0
        public static string PrintSittingAnimation(SittingAnimationItem sa)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("ChairRelated\t" + sa.HasSittingAnimation + " sitting data count(0:1)");
            if (sa.HasSittingAnimation != 0)
            {
                sb.AppendLine("Unk\t" + sa.unk1 + " " + sa.unk2 + " " + sa.unk3 + " " + sa.unk4);
            }
            return(sb.ToString());
        }
コード例 #3
0
		public static SittingAnimationItem ReadSittingAnimation(BinaryReader r) {
			SittingAnimationItem sa = new SittingAnimationItem();
			sa.HasSittingAnimation = r.ReadByte();

			if (sa.HasSittingAnimation != 0)
			{
				sa.unk1 = r.ReadInt32();
				sa.unk2 = r.ReadInt32();
				sa.unk3 = r.ReadInt32();
				sa.unk4 = r.ReadInt32();
			}
			return sa;
		}
コード例 #4
0
        public static SittingAnimationItem ReadSittingAnimation(BinaryReader r)
        {
            SittingAnimationItem sa = new SittingAnimationItem();

            sa.HasSittingAnimation = r.ReadByte();

            if (sa.HasSittingAnimation != 0)
            {
                sa.unk1 = r.ReadInt32();
                sa.unk2 = r.ReadInt32();
                sa.unk3 = r.ReadInt32();
                sa.unk4 = r.ReadInt32();
            }
            return(sa);
        }
コード例 #5
0
        public static Tileart readTileart(BinaryReader r)
        {
            Tileart t = new Tileart();

            t.header    = r.ReadUInt16();         //fixed 03
            t.nameIndex = r.ReadUInt32();         //t.group = Enum.Parse(typeof(TileGroup), r.ReadUInt32().ToString());
            t.id        = r.ReadUInt32();

            t.unk       = r.ReadByte();
            t.unk7      = r.ReadByte();
            t.unk2      = r.ReadSingle();
            t.unk3      = r.ReadSingle();
            t.fixedZero = r.ReadInt32();
            t.oldID     = r.ReadInt32();
            t.unk6      = r.ReadInt32();
            t.unk_type  = r.ReadInt32();

            t.unk8  = r.ReadByte();
            t.unk9  = r.ReadInt32();
            t.unk10 = r.ReadInt32();
            t.unk11 = r.ReadSingle();
            t.unk12 = r.ReadSingle();
            t.unk13 = r.ReadInt32();

            t.int_flags      = r.ReadInt64();
            t.int_flags_full = r.ReadInt64();

            t.flags  = (TileFlag)Enum.Parse(typeof(TileFlag), t.int_flags.ToString());
            t.flags2 = (TileFlag)Enum.Parse(typeof(TileFlag), t.int_flags_full.ToString());

            t.unk16 = r.ReadInt32();

            //IMAGE OFFSET
            for (int i = 0; i < 6; ++i)
            {
                t.imgoffEC[i] = r.ReadInt32();
            }
            for (int i = 0; i < 6; ++i)
            {
                t.imgoff2D[i] = r.ReadInt32();
            }

            t.offsetEC = new TileartImageOffset(t.imgoffEC);
            t.offset2D = new TileartImageOffset(t.imgoff2D);

            try {
                //PROPERTIES
                t.props  = ReadProps(t, r);
                t.props2 = ReadProps(t, r);                     //Repetition (?)
                //9_3
                ReadStackAliases(t, r);
                //9_4
                t.appearance = AnimationAppearanceItem.ReadAnimationAppearance(r);
                //9_5
                t.sittingAnimation = SittingAnimationItem.ReadSittingAnimation(r);
                //Radarcol
                t.radarCol = RadarColItem.ReadRadarCol(r);

                t.textures[0] = TextureInfo.readTextureInfo(r);
                t.textures[1] = TextureInfo.readTextureInfo(r);
                t.textures[2] = TextureInfo.readTextureInfo(r);
                t.textures[3] = TextureInfo.readTextureInfo(r);                //New Format
                //9_8
                ReadEffects(t, r);
            } catch {
            }
            return(t);
        }