From e8326184311d8b275b2df352685a02d9d423e7aa Mon Sep 17 00:00:00 2001 From: "github-merge-queue[bot]" <118344674+github-merge-queue[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:05:49 +0000 Subject: [PATCH] chore: Build Models --- models/csharp/UrchinModels.cs | 4 ++-- models/schemas/urchin/CameraModel.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/csharp/UrchinModels.cs b/models/csharp/UrchinModels.cs index 0e40342..57fb310 100644 --- a/models/csharp/UrchinModels.cs +++ b/models/csharp/UrchinModels.cs @@ -51,8 +51,8 @@ public CameraModel(string id, Vector3 position, Vector3 rotation, Vector3 target public enum CameraMode { - orthographic = 0, - perspective = 1, + 0 = 0, + 1 = 1, } diff --git a/models/schemas/urchin/CameraModel.json b/models/schemas/urchin/CameraModel.json index 5a4e45a..65be44a 100644 --- a/models/schemas/urchin/CameraModel.json +++ b/models/schemas/urchin/CameraModel.json @@ -1 +1 @@ -{"$defs": {"CameraMode": {"enum": ["orthographic", "perspective"], "title": "CameraMode", "type": "string"}, "Color": {"properties": {"r": {"default": 1, "maximum": 1.0, "minimum": 0.0, "title": "R", "type": "number"}, "g": {"default": 1, "maximum": 1.0, "minimum": 0.0, "title": "G", "type": "number"}, "b": {"default": 1, "maximum": 1.0, "minimum": 0.0, "title": "B", "type": "number"}, "a": {"default": 1, "maximum": 1.0, "minimum": 0.0, "title": "A", "type": "number"}}, "title": "Color", "type": "object"}, "Vector2": {"properties": {"x": {"default": 0.0, "title": "X", "type": "number"}, "y": {"default": 0.0, "title": "Y", "type": "number"}}, "title": "Vector2", "type": "object"}, "Vector3": {"properties": {"x": {"default": 0.0, "title": "X", "type": "number"}, "y": {"default": 0.0, "title": "Y", "type": "number"}, "z": {"default": 0.0, "title": "Z", "type": "number"}}, "title": "Vector3", "type": "object"}}, "properties": {"ID": {"title": "Id", "type": "string"}, "Position": {"allOf": [{"$ref": "#/$defs/Vector3"}], "default": null}, "Rotation": {"allOf": [{"$ref": "#/$defs/Vector3"}], "default": {"x": 0.0, "y": 0.0, "z": 0.0}}, "Target": {"allOf": [{"$ref": "#/$defs/Vector3"}], "default": null}, "Zoom": {"default": 16, "title": "Zoom", "type": "number"}, "Pan": {"allOf": [{"$ref": "#/$defs/Vector2"}], "default": {"x": 0.0, "y": 0.0}}, "Mode": {"allOf": [{"$ref": "#/$defs/CameraMode"}], "default": "orthographic"}, "BackgroundColor": {"allOf": [{"$ref": "#/$defs/Color"}], "default": {"r": 1.0, "g": 1.0, "b": 1.0, "a": 1.0}}, "Controllable": {"default": true, "title": "Controllable", "type": "boolean"}, "Main": {"default": false, "title": "Main", "type": "boolean"}}, "required": ["ID"], "title": "CameraModel", "type": "object"} \ No newline at end of file +{"$defs": {"CameraMode": {"enum": [0, 1], "title": "CameraMode", "type": "integer"}, "Color": {"properties": {"r": {"default": 1, "maximum": 1.0, "minimum": 0.0, "title": "R", "type": "number"}, "g": {"default": 1, "maximum": 1.0, "minimum": 0.0, "title": "G", "type": "number"}, "b": {"default": 1, "maximum": 1.0, "minimum": 0.0, "title": "B", "type": "number"}, "a": {"default": 1, "maximum": 1.0, "minimum": 0.0, "title": "A", "type": "number"}}, "title": "Color", "type": "object"}, "Vector2": {"properties": {"x": {"default": 0.0, "title": "X", "type": "number"}, "y": {"default": 0.0, "title": "Y", "type": "number"}}, "title": "Vector2", "type": "object"}, "Vector3": {"properties": {"x": {"default": 0.0, "title": "X", "type": "number"}, "y": {"default": 0.0, "title": "Y", "type": "number"}, "z": {"default": 0.0, "title": "Z", "type": "number"}}, "title": "Vector3", "type": "object"}}, "properties": {"ID": {"title": "Id", "type": "string"}, "Position": {"allOf": [{"$ref": "#/$defs/Vector3"}], "default": null}, "Rotation": {"allOf": [{"$ref": "#/$defs/Vector3"}], "default": {"x": 0.0, "y": 0.0, "z": 0.0}}, "Target": {"allOf": [{"$ref": "#/$defs/Vector3"}], "default": null}, "Zoom": {"default": 16, "title": "Zoom", "type": "number"}, "Pan": {"allOf": [{"$ref": "#/$defs/Vector2"}], "default": {"x": 0.0, "y": 0.0}}, "Mode": {"allOf": [{"$ref": "#/$defs/CameraMode"}], "default": 0}, "BackgroundColor": {"allOf": [{"$ref": "#/$defs/Color"}], "default": {"r": 1.0, "g": 1.0, "b": 1.0, "a": 1.0}}, "Controllable": {"default": true, "title": "Controllable", "type": "boolean"}, "Main": {"default": false, "title": "Main", "type": "boolean"}}, "required": ["ID"], "title": "CameraModel", "type": "object"} \ No newline at end of file