public ObjectElement(uint eid, [NotNull] string name, Vector2 position, Vector2 size, AnchorXType anchorX, AnchorYType anchorY, float rotation, bool visible, [NotNull] IComponent[] components, [NotNull] uint[] children) { Eid = eid; Name = name; Position = position; Size = size; AnchorX = anchorX; AnchorY = anchorY; Rotation = rotation; Visible = visible; Components = components; Children = children; }
private static string ToSerializable(AnchorYType x) => x.ToString().ToLower();