Exemple #1
0
        public static string PrintRadarColInfo(RadarColItem rc)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("RadarCol\n\tR" + rc.R + " G" + rc.G + " B" + rc.B + " A" + rc.A);
            sb.AppendLine();
            return(sb.ToString());
        }
Exemple #2
0
		public static RadarColItem ReadRadarCol(BinaryReader r) {
			RadarColItem rc = new RadarColItem();

			rc.R = r.ReadByte();
			rc.G = r.ReadByte();
			rc.B = r.ReadByte();
			rc.A = r.ReadByte();

			return rc;
		}
Exemple #3
0
        public static RadarColItem ReadRadarCol(BinaryReader r)
        {
            RadarColItem rc = new RadarColItem();

            rc.R = r.ReadByte();
            rc.G = r.ReadByte();
            rc.B = r.ReadByte();
            rc.A = r.ReadByte();

            return(rc);
        }
Exemple #4
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);
        }
Exemple #5
0
		public static string PrintRadarColInfo(RadarColItem rc) {
			StringBuilder sb = new StringBuilder();
			sb.AppendLine("RadarCol\n\tR" + rc.R + " G" + rc.G + " B" + rc.B + " A" + rc.A);
			sb.AppendLine();
			return sb.ToString();
		}