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))); }
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))); }