1 #include "xr_ai_cross_table.h"
2 #include "xr_reader.h"
3 #include "xr_writer.h"
4 
5 using namespace xray_re;
6 
operator ()(gct_cell & cell,xr_reader & r) const7 void gct_cell_io::operator()(gct_cell& cell, xr_reader& r) const
8 {
9 	cell.graph_id = r.r_u16();
10 	cell.distance = r.r_float();
11 }
12 
operator ()(const gct_cell & cell,xr_writer & w) const13 void gct_cell_io::operator()(const gct_cell& cell, xr_writer& w) const
14 {
15 	w.w_u16(cell.graph_id);
16 	w.w_float(cell.distance);
17 }
18