| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using DCL.Helpers; |
| | 4 | | using DCL.Models; |
| | 5 | |
|
| | 6 | | namespace DCL.Components |
| | 7 | | { |
| | 8 | | public class DCLGizmos : BaseComponent |
| | 9 | | { |
| | 10 | | public static class Gizmo |
| | 11 | | { |
| | 12 | | public const string MOVE = "MOVE"; |
| | 13 | | public const string ROTATE = "ROTATE"; |
| | 14 | | public const string SCALE = "SCALE"; |
| | 15 | | public const string NONE = "NONE"; |
| | 16 | | } |
| | 17 | |
|
| | 18 | | [System.Serializable] |
| | 19 | | public class Model : BaseModel |
| | 20 | | { |
| 0 | 21 | | public bool position = true; |
| 0 | 22 | | public bool rotation = true; |
| 0 | 23 | | public bool scale = true; |
| 0 | 24 | | public bool cycle = true; |
| 0 | 25 | | public string selectedGizmo = Gizmo.NONE; |
| | 26 | | public bool localReference = false; |
| | 27 | |
|
| 0 | 28 | | public override BaseModel GetDataFromJSON(string json) { return Utils.SafeFromJson<Model>(json); } |
| | 29 | | } |
| | 30 | |
|
| 0 | 31 | | private void Awake() { model = new Model(); } |
| | 32 | |
|
| 0 | 33 | | public override IEnumerator ApplyChanges(BaseModel baseModel) { return null; } |
| | 34 | |
|
| 0 | 35 | | public override int GetClassId() { return (int) CLASS_ID_COMPONENT.GIZMOS; } |
| | 36 | | } |
| | 37 | | } |