using System; using UnityEngine; namespace RimWorldAnimationStudio { public struct CurvePoint { public Vector2 Loc { get { return this.loc; } } public float x { get { return this.loc.x; } } public float y { get { return this.loc.y; } } public CurvePoint(float x, float y) { this.loc = new Vector2(x, y); } public CurvePoint(Vector2 loc) { this.loc = loc; } public static implicit operator Vector2(CurvePoint pt) { return pt.loc; } private Vector2 loc; } }