| | 1 | | using System.Collections.Generic; |
| | 2 | | using DCL.ECSComponents; |
| | 3 | | using UnityEngine; |
| | 4 | | using RaycastHit = DCL.ECSComponents.RaycastHit; |
| | 5 | |
|
| | 6 | | namespace DCL.ECS7.InternalComponents |
| | 7 | | { |
| | 8 | | public class InternalComponent |
| | 9 | | { |
| | 10 | | public bool dirty => _dirty; |
| | 11 | | internal bool _dirty = true; |
| | 12 | | } |
| | 13 | |
|
| | 14 | | public class InternalTexturizable : InternalComponent |
| | 15 | | { |
| | 16 | | public IList<Renderer> renderers = new List<Renderer>(); |
| | 17 | | } |
| | 18 | |
|
| | 19 | | public class InternalMaterial : InternalComponent |
| | 20 | | { |
| | 21 | | public Material material = null; |
| | 22 | | public bool castShadows = true; |
| | 23 | | } |
| | 24 | |
|
| | 25 | | public class InternalColliders : InternalComponent |
| | 26 | | { |
| | 27 | | public IList<Collider> colliders = new List<Collider>(); |
| | 28 | | } |
| | 29 | |
|
| | 30 | | public class InternalRenderers : InternalComponent |
| | 31 | | { |
| | 32 | | public IList<Renderer> renderers = new List<Renderer>(); |
| | 33 | | } |
| | 34 | |
|
| | 35 | | public class InternalVisibility : InternalComponent |
| | 36 | | { |
| 0 | 37 | | public bool visible = true; |
| | 38 | | } |
| | 39 | |
|
| | 40 | | public class InternalInputEventResults : InternalComponent |
| | 41 | | { |
| | 42 | | public class EventData |
| | 43 | | { |
| | 44 | | public ActionButton button; |
| | 45 | | public RaycastHit hit; |
| | 46 | | public PointerEventType type; |
| | 47 | | public int timestamp; |
| | 48 | | public float analog; |
| | 49 | | } |
| | 50 | |
|
| | 51 | | public Queue<EventData> events; |
| | 52 | | public int lastTimestamp; |
| | 53 | | } |
| | 54 | | } |