예제 #1
0
파일: Poke.cs 프로젝트: tianqihou/tools
 private npc_type GetNpc(ReadAndWrite rw, int num)
 {
     if (num > MAX_NUM)
     {
         num  -= MAX_NUM;
         table = TABLE_EXPANDED;
     }
     else
     {
         table = TABLE_DEAFAULT;
     }
     this.num = num;
     return((npc_type)rw.GetStruct(table, num, typeof(npc_type)));
 }