using System; using UnityEngine.UIElements; using Object = UnityEngine.Object; namespace Goap.Goap.Editor { public class EditorWindowValues { public int Zoom { get; set; } = 100; public VisualElement RootElement { get; set; } public DragDrawer DragDrawer { get; set; } public Object SelectedObject { get; set; } public bool ShowConfig { get; set; } public void UpdateZoom(int zoom) { if (zoom > 0) { this.Zoom = Math.Min(100, this.Zoom + zoom); return; } this.Zoom = Math.Max(50, this.Zoom + zoom); } public delegate void UpdateEvent(); public event UpdateEvent OnUpdate; public void Update() { this.OnUpdate?.Invoke(); } } }