diff options
Diffstat (limited to 'ddl/out/TestData.cs')
-rw-r--r-- | ddl/out/TestData.cs | 158 |
1 files changed, 68 insertions, 90 deletions
diff --git a/ddl/out/TestData.cs b/ddl/out/TestData.cs index 7bb120f..c112934 100644 --- a/ddl/out/TestData.cs +++ b/ddl/out/TestData.cs | |||
@@ -1,5 +1,5 @@ | |||
1 | // generated file, do not modify! | 1 | // generated file, do not modify! |
2 | // 2016-03-21T13:14:18.341517000000Z | 2 | // 2016-03-21T13:31:10.455557000000Z |
3 | 3 | ||
4 | using System; | 4 | using System; |
5 | using System.Linq; | 5 | using System.Linq; |
@@ -190,120 +190,98 @@ namespace TestData { | |||
190 | 190 | ||
191 | case Type.ClientInfo: { | 191 | case Type.ClientInfo: { |
192 | string tag = (string)obj["tag"]; | 192 | string tag = (string)obj["tag"]; |
193 | ClientInfo.Tag tagType; | 193 | switch (tag) { |
194 | if (tag == "ClientInfo") { | 194 | case "ClientInfo": { |
195 | tagType = ClientInfo.Tag.ClientInfo; | 195 | data.ClientInfo tv = new data.ClientInfo(); |
196 | data.ClientInfo tv = new data.ClientInfo(); | 196 | tv.clientName = (string)fromJSON(Type.String,obj["clientName"]); |
197 | tv.clientName = (string)fromJSON(Type.String,obj["clientName"]); | 197 | tv.clientBackend = (global::TestData.Backend)fromJSON(Type.Backend,obj["clientBackend"]); |
198 | tv.clientBackend = (global::TestData.Backend)fromJSON(Type.Backend,obj["clientBackend"]); | 198 | return tv; |
199 | return tv; | 199 | } |
200 | default: throw new Exception("unknown constructor: " + tag); | ||
200 | } | 201 | } |
201 | else throw new Exception("unknown constructor: " + tag); | ||
202 | ClientInfo o = new ClientInfo(); | ||
203 | o.tag = tagType; | ||
204 | return o; | ||
205 | } | 202 | } |
206 | case Type.Frame: { | 203 | case Type.Frame: { |
207 | string tag = (string)obj["tag"]; | 204 | string tag = (string)obj["tag"]; |
208 | Frame.Tag tagType; | 205 | switch (tag) { |
209 | if (tag == "Frame") { | 206 | case "Frame": { |
210 | tagType = Frame.Tag.Frame; | 207 | data.Frame tv = new data.Frame(); |
211 | data.Frame tv = new data.Frame(); | 208 | tv.renderCount = (int)fromJSON(Type.Int,obj["renderCount"]); |
212 | tv.renderCount = (int)fromJSON(Type.Int,obj["renderCount"]); | 209 | tv.frameUniforms = (Dictionary<string, global::TestData.Value>)fromJSON(Type.Map_String_Value,obj["frameUniforms"]); |
213 | tv.frameUniforms = (Dictionary<string, global::TestData.Value>)fromJSON(Type.Map_String_Value,obj["frameUniforms"]); | 210 | tv.frameTextures = (Dictionary<string, int>)fromJSON(Type.Map_String_Int,obj["frameTextures"]); |
214 | tv.frameTextures = (Dictionary<string, int>)fromJSON(Type.Map_String_Int,obj["frameTextures"]); | 211 | return tv; |
215 | return tv; | 212 | } |
213 | default: throw new Exception("unknown constructor: " + tag); | ||
216 | } | 214 | } |
217 | else throw new Exception("unknown constructor: " + tag); | ||
218 | Frame o = new Frame(); | ||
219 | o.tag = tagType; | ||
220 | return o; | ||
221 | } | 215 | } |
222 | case Type.Scene: { | 216 | case Type.Scene: { |
223 | string tag = (string)obj["tag"]; | 217 | string tag = (string)obj["tag"]; |
224 | Scene.Tag tagType; | 218 | switch (tag) { |
225 | if (tag == "Scene") { | 219 | case "Scene": { |
226 | tagType = Scene.Tag.Scene; | 220 | data.Scene tv = new data.Scene(); |
227 | data.Scene tv = new data.Scene(); | 221 | tv.objectArrays = (Dictionary<string, List<int>>)fromJSON(Type.Map_String_Array_Int,obj["objectArrays"]); |
228 | tv.objectArrays = (Dictionary<string, List<int>>)fromJSON(Type.Map_String_Array_Int,obj["objectArrays"]); | 222 | tv.renderTargetWidth = (int)fromJSON(Type.Int,obj["renderTargetWidth"]); |
229 | tv.renderTargetWidth = (int)fromJSON(Type.Int,obj["renderTargetWidth"]); | 223 | tv.renderTargetHeight = (int)fromJSON(Type.Int,obj["renderTargetHeight"]); |
230 | tv.renderTargetHeight = (int)fromJSON(Type.Int,obj["renderTargetHeight"]); | 224 | tv.frames = (List<global::TestData.Frame>)fromJSON(Type.Array_Frame,obj["frames"]); |
231 | tv.frames = (List<global::TestData.Frame>)fromJSON(Type.Array_Frame,obj["frames"]); | 225 | return tv; |
232 | return tv; | 226 | } |
227 | default: throw new Exception("unknown constructor: " + tag); | ||
233 | } | 228 | } |
234 | else throw new Exception("unknown constructor: " + tag); | ||
235 | Scene o = new Scene(); | ||
236 | o.tag = tagType; | ||
237 | return o; | ||
238 | } | 229 | } |
239 | case Type.PipelineInfo: { | 230 | case Type.PipelineInfo: { |
240 | string tag = (string)obj["tag"]; | 231 | string tag = (string)obj["tag"]; |
241 | PipelineInfo.Tag tagType; | 232 | switch (tag) { |
242 | if (tag == "PipelineInfo") { | 233 | case "PipelineInfo": { |
243 | tagType = PipelineInfo.Tag.PipelineInfo; | 234 | data.PipelineInfo tv = new data.PipelineInfo(); |
244 | data.PipelineInfo tv = new data.PipelineInfo(); | 235 | tv.pipelineName = (string)fromJSON(Type.String,obj["pipelineName"]); |
245 | tv.pipelineName = (string)fromJSON(Type.String,obj["pipelineName"]); | 236 | tv.pipeline = (global::TestData.Pipeline)fromJSON(Type.Pipeline,obj["pipeline"]); |
246 | tv.pipeline = (global::TestData.Pipeline)fromJSON(Type.Pipeline,obj["pipeline"]); | 237 | return tv; |
247 | return tv; | 238 | } |
239 | default: throw new Exception("unknown constructor: " + tag); | ||
248 | } | 240 | } |
249 | else throw new Exception("unknown constructor: " + tag); | ||
250 | PipelineInfo o = new PipelineInfo(); | ||
251 | o.tag = tagType; | ||
252 | return o; | ||
253 | } | 241 | } |
254 | case Type.RenderJob: { | 242 | case Type.RenderJob: { |
255 | string tag = (string)obj["tag"]; | 243 | string tag = (string)obj["tag"]; |
256 | RenderJob.Tag tagType; | 244 | switch (tag) { |
257 | if (tag == "RenderJob") { | 245 | case "RenderJob": { |
258 | tagType = RenderJob.Tag.RenderJob; | 246 | data.RenderJob tv = new data.RenderJob(); |
259 | data.RenderJob tv = new data.RenderJob(); | 247 | tv.meshes = (List<global::TestData.Mesh>)fromJSON(Type.Array_Mesh,obj["meshes"]); |
260 | tv.meshes = (List<global::TestData.Mesh>)fromJSON(Type.Array_Mesh,obj["meshes"]); | 248 | tv.textures = (List<string>)fromJSON(Type.Array_String,obj["textures"]); |
261 | tv.textures = (List<string>)fromJSON(Type.Array_String,obj["textures"]); | 249 | tv.schema = (global::TestData.PipelineSchema)fromJSON(Type.PipelineSchema,obj["schema"]); |
262 | tv.schema = (global::TestData.PipelineSchema)fromJSON(Type.PipelineSchema,obj["schema"]); | 250 | tv.scenes = (List<global::TestData.Scene>)fromJSON(Type.Array_Scene,obj["scenes"]); |
263 | tv.scenes = (List<global::TestData.Scene>)fromJSON(Type.Array_Scene,obj["scenes"]); | 251 | tv.pipelines = (List<global::TestData.PipelineInfo>)fromJSON(Type.Array_PipelineInfo,obj["pipelines"]); |
264 | tv.pipelines = (List<global::TestData.PipelineInfo>)fromJSON(Type.Array_PipelineInfo,obj["pipelines"]); | 252 | return tv; |
265 | return tv; | 253 | } |
254 | default: throw new Exception("unknown constructor: " + tag); | ||
266 | } | 255 | } |
267 | else throw new Exception("unknown constructor: " + tag); | ||
268 | RenderJob o = new RenderJob(); | ||
269 | o.tag = tagType; | ||
270 | return o; | ||
271 | } | 256 | } |
272 | case Type.FrameResult: { | 257 | case Type.FrameResult: { |
273 | string tag = (string)obj["tag"]; | 258 | string tag = (string)obj["tag"]; |
274 | FrameResult.Tag tagType; | 259 | switch (tag) { |
275 | if (tag == "FrameResult") { | 260 | case "FrameResult": { |
276 | tagType = FrameResult.Tag.FrameResult; | 261 | data.FrameResult tv = new data.FrameResult(); |
277 | data.FrameResult tv = new data.FrameResult(); | 262 | tv.frRenderTimes = (List<float>)fromJSON(Type.Array_Float,obj["frRenderTimes"]); |
278 | tv.frRenderTimes = (List<float>)fromJSON(Type.Array_Float,obj["frRenderTimes"]); | 263 | tv.frImageWidth = (int)fromJSON(Type.Int,obj["frImageWidth"]); |
279 | tv.frImageWidth = (int)fromJSON(Type.Int,obj["frImageWidth"]); | 264 | tv.frImageHeight = (int)fromJSON(Type.Int,obj["frImageHeight"]); |
280 | tv.frImageHeight = (int)fromJSON(Type.Int,obj["frImageHeight"]); | 265 | return tv; |
281 | return tv; | 266 | } |
267 | default: throw new Exception("unknown constructor: " + tag); | ||
282 | } | 268 | } |
283 | else throw new Exception("unknown constructor: " + tag); | ||
284 | FrameResult o = new FrameResult(); | ||
285 | o.tag = tagType; | ||
286 | return o; | ||
287 | } | 269 | } |
288 | case Type.RenderJobResult: { | 270 | case Type.RenderJobResult: { |
289 | string tag = (string)obj["tag"]; | 271 | string tag = (string)obj["tag"]; |
290 | RenderJobResult.Tag tagType; | 272 | switch (tag) { |
291 | if (tag == "RenderJobResult") { | 273 | case "RenderJobResult": { |
292 | tagType = RenderJobResult.Tag.RenderJobResult; | 274 | data.RenderJobResult tv = new data.RenderJobResult(); |
293 | data.RenderJobResult tv = new data.RenderJobResult(); | 275 | tv._0 = (global::TestData.FrameResult)fromJSON(Type.FrameResult,obj["arg0"]); |
294 | tv._0 = (global::TestData.FrameResult)fromJSON(Type.FrameResult,obj["arg0"]); | 276 | return tv; |
295 | return tv; | 277 | } |
278 | case "RenderJobError": { | ||
279 | data.RenderJobError tv = new data.RenderJobError(); | ||
280 | tv._0 = (string)fromJSON(Type.String,obj["arg0"]); | ||
281 | return tv; | ||
282 | } | ||
283 | default: throw new Exception("unknown constructor: " + tag); | ||
296 | } | 284 | } |
297 | else if (tag == "RenderJobError") { | ||
298 | tagType = RenderJobResult.Tag.RenderJobError; | ||
299 | data.RenderJobError tv = new data.RenderJobError(); | ||
300 | tv._0 = (string)fromJSON(Type.String,obj["arg0"]); | ||
301 | return tv; | ||
302 | } | ||
303 | else throw new Exception("unknown constructor: " + tag); | ||
304 | RenderJobResult o = new RenderJobResult(); | ||
305 | o.tag = tagType; | ||
306 | return o; | ||
307 | } | 285 | } |
308 | } | 286 | } |
309 | throw new Exception("unknown type"); | 287 | throw new Exception("unknown type"); |