Skip to content

Commit

Permalink
chore: Build Models
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman authored and github-actions[bot] committed Apr 4, 2024
1 parent 9faec06 commit 20daf2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions models/csharp/UrchinModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,16 @@ public MeshModel(string id, string shape, Vector3 position, Color color, Vector3
public struct ParticleSystemModel
{
public string ID;
public string Shape;
public int N;
public string Material;
public Vector3[] Positions;
public float[] Sizes;
public Color[] Colors;

public ParticleSystemModel(string id, string shape, string material, Vector3[] positions, float[] sizes, Color[] colors)
public ParticleSystemModel(string id, int n, string material, Vector3[] positions, float[] sizes, Color[] colors)
{
ID = id;
Shape = shape;
N = n;
Material = material;
Positions = positions;
Sizes = sizes;
Expand Down
2 changes: 1 addition & 1 deletion models/schemas/urchin/ParticleSystemModel.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"$defs": {"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"}, "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"}, "Shape": {"title": "Shape", "type": "string"}, "Material": {"title": "Material", "type": "string"}, "Positions": {"items": {"$ref": "#/$defs/Vector3"}, "title": "Positions", "type": "array"}, "Sizes": {"items": {"type": "number"}, "title": "Sizes", "type": "array"}, "Colors": {"items": {"$ref": "#/$defs/Color"}, "title": "Colors", "type": "array"}}, "required": ["ID", "Shape", "Material", "Positions", "Sizes", "Colors"], "title": "ParticleSystemModel", "type": "object"}
{"$defs": {"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"}, "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"}, "N": {"title": "N", "type": "integer"}, "Material": {"default": "circle", "title": "Material", "type": "string"}, "Positions": {"default": [], "items": {"$ref": "#/$defs/Vector3"}, "title": "Positions", "type": "array"}, "Sizes": {"default": [], "items": {"type": "number"}, "title": "Sizes", "type": "array"}, "Colors": {"default": [], "items": {"$ref": "#/$defs/Color"}, "title": "Colors", "type": "array"}}, "required": ["ID", "N"], "title": "ParticleSystemModel", "type": "object"}

0 comments on commit 20daf2c

Please sign in to comment.