protected override void InternalRead(BinaryReader r) { name = string.Intern(r.ReadStringFromNextOffset()); Trasparent = r.ReadIntBool(); Smooth = r.ReadIntBool(); Preload = r.ReadIntBool(); int offset = r.ReadInt32(); r.BaseStream.Position = offset; Frame = new SpriteFrame(); Frame.Read(r, -1); }
protected override void InternalRead(BinaryReader r) { name = string.Intern(r.ReadStringFromNextOffset()); Description = r.ReadStringFromNextOffset(); Size = r.ReadInt32(); Bold = r.ReadIntBool(); Italic = r.ReadIntBool();; int flag = r.ReadInt32(); FirstChar = (char)(flag & 0xFFFF); CharSet = (flag >> 16) & 0xFF; AntiAlias = (flag >> 24) & 0xFF; LastChar = (char)r.ReadInt32(); var pos = r.BaseStream.Position + 4; r.BaseStream.Position = r.ReadInt32(); Frame = new SpriteFrame(); Frame.Read(r, -1); r.BaseStream.Position = pos; ScaleW = r.ReadSingle(); ScaleH = r.ReadSingle(); Glyphs = ArrayFromOffset <Glyph>(r); }