Beispiel #1
0
 public void addToStreamEx(Bundle stream, D_TEAM_INFOS v)
 {
     stream.writeInt32(v.id);
     stream.writeInt32(v.team_id);
     stream.writeFloat(v.position_x);
     stream.writeFloat(v.position_y);
     stream.writeFloat(v.position_z);
     stream.writeFloat(v.direction_x);
     stream.writeFloat(v.direction_y);
     stream.writeFloat(v.direction_z);
 }
Beispiel #2
0
        public D_TEAM_INFOS createFromStreamEx(MemoryStream stream)
        {
            D_TEAM_INFOS datas = new D_TEAM_INFOS();

            datas.id          = stream.readInt32();
            datas.team_id     = stream.readInt32();
            datas.position_x  = stream.readFloat();
            datas.position_y  = stream.readFloat();
            datas.position_z  = stream.readFloat();
            datas.direction_x = stream.readFloat();
            datas.direction_y = stream.readFloat();
            datas.direction_z = stream.readFloat();
            return(datas);
        }