コード例 #1
0
        private Font ReadFont(ProjFileStream pfs, ref Color col)
        {
            string       name = pfs.ReadString();
            float        size = pfs.ReadFloat();
            FontStyle    fs   = (FontStyle)pfs.ReadInt();
            GraphicsUnit gu   = (GraphicsUnit)pfs.ReadInt();
            byte         cs   = pfs.ReadByte();
            bool         vf   = pfs.ReadBool();

            col = pfs.ReadColor();
            return(new System.Drawing.Font(name, size, fs, gu, cs, vf));
        }
コード例 #2
0
        public static REWRound LoadRound(ProjFileStream pfs, int fileCount, int maxCount)
        {
            string   name = pfs.ReadString();
            REWRound rr   = new REWRound(name, maxCount);

            for (int i = 0; i < fileCount; i++)
            {
                string wrd = pfs.ReadString();
                bool   stt = pfs.ReadBool();
                if (i < maxCount)
                {
                    rr.SetAt(wrd, stt, i);
                }
            }

            return(rr);
        }