diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2016-03-20 23:20:35 +0100 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2016-03-21 14:12:08 +0100 |
commit | 4d40c4ee5ed15544d2ac7fb1ea7b61e89766d277 (patch) | |
tree | 716e9b6f90bdf55b9a5f0cfe33f2b77a1b9f71b1 /ddl/templates/data.cs.ede | |
parent | c5e063b3c9aeff65161e24445e9672daff980b45 (diff) |
fix c#
Diffstat (limited to 'ddl/templates/data.cs.ede')
-rw-r--r-- | ddl/templates/data.cs.ede | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ddl/templates/data.cs.ede b/ddl/templates/data.cs.ede index 13d20f9..dffad32 100644 --- a/ddl/templates/data.cs.ede +++ b/ddl/templates/data.cs.ede | |||
@@ -45,23 +45,23 @@ namespace {{ moduleName }} { | |||
45 | {% when "V2" %} | 45 | {% when "V2" %} |
46 | case Type.{{ t.value | csTypeEnum }}: | 46 | case Type.{{ t.value | csTypeEnum }}: |
47 | return new {{ t.value | csType }} | 47 | return new {{ t.value | csType }} |
48 | { x = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["x"]) | 48 | { x = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["x"]) |
49 | , y = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["y"]) | 49 | , y = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["y"]) |
50 | }; | 50 | }; |
51 | {% when "V3" %} | 51 | {% when "V3" %} |
52 | case Type.{{ t.value | csTypeEnum }}: | 52 | case Type.{{ t.value | csTypeEnum }}: |
53 | return new {{ t.value | csType }} | 53 | return new {{ t.value | csType }} |
54 | { x = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["x"]) | 54 | { x = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["x"]) |
55 | , y = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["y"]) | 55 | , y = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["y"]) |
56 | , z = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["z"]) | 56 | , z = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["z"]) |
57 | }; | 57 | }; |
58 | {% when "V4" %} | 58 | {% when "V4" %} |
59 | case Type.{{ t.value | csTypeEnum }}: | 59 | case Type.{{ t.value | csTypeEnum }}: |
60 | return new {{ t.value | csType }} | 60 | return new {{ t.value | csType }} |
61 | { x = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["x"]) | 61 | { x = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["x"]) |
62 | , y = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["y"]) | 62 | , y = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["y"]) |
63 | , z = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["z"]) | 63 | , z = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["z"]) |
64 | , w = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value | csTypeEnum }},obj["w"]) | 64 | , w = ({{ t.value.type_ | csType }})fromJSON(Type.{{ t.value.type_ | csTypeEnum }},obj["w"]) |
65 | }; | 65 | }; |
66 | {% when "Map" %} | 66 | {% when "Map" %} |
67 | case Type.{{ t.value | csTypeEnum }}: { | 67 | case Type.{{ t.value | csTypeEnum }}: { |