コード例 #1
0
        public static MieFontEntries Read(BinaryReader br)
        {
            MieFontEntries result = new MieFontEntries();

            result.Count = br.ReadInt32();
            for (int i = 0; i < result.Count; i++)
            {
                MieFontEntry entry = MieFontEntry.Read(br);
                result.Items.Add(entry);
            }

            return(result);
        }
コード例 #2
0
        public static MieFontEntry Read(BinaryReader br)
        {
            MieFontEntry result = new MieFontEntry();

            result.CharacterID = br.ReadInt32();
            result.PosX        = br.ReadSingle();
            result.PosY        = br.ReadSingle();
            result.Width       = br.ReadSingle();
            result.Height      = br.ReadSingle();
            result.OffsetX     = br.ReadSingle();
            result.OffsetY     = br.ReadSingle();
            result.AdvanceX    = br.ReadSingle();
            result.Scale       = br.ReadSingle();

            return(result);
        }