예제 #1
0
        public virtual TesField ReadField(TesFileReader fr)
        {
            TesField result = null;

            string id = fr.GetTypeID();

            switch (id)
            {
            //ワールドデータ内にある"OFST"で、1箇所DataSizeが0になっており、以降のデータが書き出されている場所がある
            case "OFST":
                if (fr.GetInt16(4, false) == 0)
                {
                    result = new TesField(fr, false);
                    result.Values.Add(new TesBytes(fr.GetBytes(fr.Length - fr.Position)));
                }
                break;
            }
            return(result);
        }
예제 #2
0
 public TesInt16(TesFileReader fr)
 {
     this.Value = fr.GetInt16();
 }