public void addToStreamEx(Bundle stream, D_ROAD_INFOS v) { stream.writeInt32(v.id); stream.writeInt32(v.group); stream.writeFloat(v.position_x); stream.writeFloat(v.position_y); stream.writeFloat(v.position_z); stream.writeFloat(v.eulerAngles_x); stream.writeFloat(v.eulerAngles_y); stream.writeFloat(v.eulerAngles_z); stream.writeInt32(v.born); }
public D_ROAD_INFOS createFromStreamEx(MemoryStream stream) { D_ROAD_INFOS datas = new D_ROAD_INFOS(); datas.id = stream.readInt32(); datas.group = stream.readInt32(); datas.position_x = stream.readFloat(); datas.position_y = stream.readFloat(); datas.position_z = stream.readFloat(); datas.eulerAngles_x = stream.readFloat(); datas.eulerAngles_y = stream.readFloat(); datas.eulerAngles_z = stream.readFloat(); datas.born = stream.readInt32(); return(datas); }