| | 1 | | using System; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | public static class CatalystEntitiesType |
| | 5 | | { |
| 0 | 6 | | public static readonly string SCENE = "scene"; |
| 0 | 7 | | public static readonly string PROFILE = "profile"; |
| 0 | 8 | | public static readonly string WEARABLE = "wearable"; |
| | 9 | | } |
| | 10 | |
|
| | 11 | | [Serializable] |
| | 12 | | public class CatalystEntityContent |
| | 13 | | { |
| | 14 | | public string file; |
| | 15 | | public string hash; |
| | 16 | | } |
| | 17 | |
|
| | 18 | | [Serializable] |
| | 19 | | public class CatalystEntityBase |
| | 20 | | { |
| | 21 | | public string id; |
| | 22 | | public string type; |
| | 23 | | public long timestamp; |
| | 24 | | public string[] pointers; |
| | 25 | | public CatalystEntityContent[] content; |
| | 26 | | } |
| | 27 | |
|
| | 28 | | [Serializable] |
| | 29 | | public class CatalystSceneEntityPayload : CatalystEntityBase |
| | 30 | | { |
| | 31 | | public CatalystSceneEntityMetadata metadata; |
| | 32 | | } |
| | 33 | |
|
| | 34 | | [Serializable] |
| | 35 | | public class CatalystSceneEntityMetadata |
| | 36 | | { |
| | 37 | | [Serializable] |
| | 38 | | public class Display |
| | 39 | | { |
| | 40 | | public string title; |
| | 41 | | public string description; |
| | 42 | | public string navmapThumbnail; |
| | 43 | | } |
| | 44 | |
|
| | 45 | | [Serializable] |
| | 46 | | public class Contact |
| | 47 | | { |
| | 48 | | public string name; |
| | 49 | | } |
| | 50 | |
|
| | 51 | | [Serializable] |
| | 52 | | public class Scene |
| | 53 | | { |
| | 54 | | public string @base; |
| | 55 | | public string[] parcels; |
| | 56 | | } |
| | 57 | |
|
| | 58 | | [Serializable] |
| | 59 | | public class Policy |
| | 60 | | { |
| | 61 | | public string contentRating; |
| | 62 | | public bool fly; |
| | 63 | | public bool voiceEnabled; |
| | 64 | | public string[] blacklist; |
| | 65 | | } |
| | 66 | |
|
| | 67 | | [Serializable] |
| | 68 | | public class SpawnPoint |
| | 69 | | { |
| | 70 | | [Serializable] |
| | 71 | | public class Vector3 |
| | 72 | | { |
| | 73 | | public float x; |
| | 74 | | public float y; |
| | 75 | | public float z; |
| | 76 | | } |
| | 77 | |
|
| | 78 | | public string name; |
| | 79 | | public bool @default; |
| | 80 | | public Vector3 position; |
| | 81 | | public Vector3 cameraTarget; |
| | 82 | | } |
| | 83 | |
|
| | 84 | | [Serializable] |
| | 85 | | public class Source |
| | 86 | | { |
| | 87 | | [Serializable] |
| | 88 | | public class Layout |
| | 89 | | { |
| | 90 | | public string rows; |
| | 91 | | public string cols; |
| | 92 | | } |
| | 93 | |
|
| | 94 | | public int version; |
| | 95 | | public string origin; |
| | 96 | | public string projectId; |
| | 97 | | public Vector2Int point; |
| | 98 | | public string rotation; |
| | 99 | | public Layout layout; |
| | 100 | | public bool isEmpty; |
| | 101 | | } |
| | 102 | |
|
| | 103 | | public Display display; |
| | 104 | | public Contact contact; |
| | 105 | | public Scene scene; |
| | 106 | | public Policy policy; |
| | 107 | | public Source source; |
| | 108 | | public SpawnPoint[] spawnPoints; |
| | 109 | | public string owner; |
| | 110 | | public string[] tags; |
| | 111 | | public string[] requiredPermissions; |
| | 112 | | } |