public void BuildResponseStreams(Orrb.RenderBatchResponse response) { foreach (KeyValuePair <string, bool[]> bool_stream in bool_streams_.GetStreams()) { Orrb.RenderBatchResponse.Types.AuxiliaryBoolStreamEntry response_bool_stream = new Orrb.RenderBatchResponse.Types.AuxiliaryBoolStreamEntry(); response_bool_stream.Name = bool_stream.Key; response_bool_stream.Data.AddRange(bool_stream.Value); response.AuxiliaryBoolStreams.Add(response_bool_stream); } foreach (KeyValuePair <string, int[]> int_stream in int_streams_.GetStreams()) { Orrb.RenderBatchResponse.Types.AuxiliaryIntStreamEntry response_int_stream = new Orrb.RenderBatchResponse.Types.AuxiliaryIntStreamEntry(); response_int_stream.Name = int_stream.Key; response_int_stream.Data.AddRange(int_stream.Value); response.AuxiliaryIntStreams.Add(response_int_stream); } foreach (KeyValuePair <string, float[]> float_stream in float_streams_.GetStreams()) { Orrb.RenderBatchResponse.Types.AuxiliaryFloatStreamEntry response_float_stream = new Orrb.RenderBatchResponse.Types.AuxiliaryFloatStreamEntry(); response_float_stream.Name = float_stream.Key; response_float_stream.Data.AddRange(float_stream.Value); response.AuxiliaryFloatStreams.Add(response_float_stream); } }