Beispiel #1
0
        public string parent_name; //大类名称

        public void ReadFrom(Zby.ByteBuffer rd)
        {
            index       = rd.ReadInt();
            add         = rd.ReadInt();
            xing        = rd.ReadString();
            parent_name = rd.ReadString();
        }
Beispiel #2
0
        public string bishun; //笔顺

        public void ReadFrom(Zby.ByteBuffer rd)
        {
            index  = rd.ReadInt();
            xing   = rd.ReadString();
            bishu  = rd.ReadInt();
            duan   = rd.ReadInt();
            bishun = rd.ReadString();
        }
Beispiel #3
0
 public bool LoadFromFile(string fileName)
 {
     dataMap.Clear();
     try{
         using (var stream = new FileStream(fileName, FileMode.Open))
         {
             Zby.ByteBuffer readBuff = new Zby.ByteBuffer(stream);
             do
             {
                 language newData = new language();
                 try{
                     newData.ReadFrom(readBuff);
                     dataMap.Add(newData.Key, newData);
                 }catch (Exception e) {
                     break;
                 }
             }while(true);
         }
     }catch (Exception e) {
         return(false);
     }
     return(dataMap.Count > 0);
 }
Beispiel #4
0
        public string Content; //中文

        public void ReadFrom(Zby.ByteBuffer rd)
        {
            Key     = rd.ReadString();
            Content = rd.ReadString();
        }
Beispiel #5
0
        public string Path; //特效文件路径

        public void ReadFrom(Zby.ByteBuffer rd)
        {
            ID   = rd.ReadInt();
            Path = rd.ReadString();
        }