From a561f4e19c8c00ff8eceeb5f8150fe6a84d8cada Mon Sep 17 00:00:00 2001 From: RblSb Date: Wed, 14 Feb 2024 20:56:33 +0300 Subject: [PATCH] fix other enums --- echo/data/Types.hx | 6 +++--- echo/util/Bezier.hx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/echo/data/Types.hx b/echo/data/Types.hx index 0f25d2c..8315c05 100644 --- a/echo/data/Types.hx +++ b/echo/data/Types.hx @@ -1,17 +1,17 @@ package echo.data; -@:enum abstract MassType(Float) from Float to Float { +enum abstract MassType(Float) from Float to Float { var AUTO = -1; var STATIC = 0; } -@:enum abstract ShapeType(Int) from Int to Int { +enum abstract ShapeType(Int) from Int to Int { var RECT; var CIRCLE; var POLYGON; } -@:enum abstract ForceType(Int) from Int to Int { +enum abstract ForceType(Int) from Int to Int { var ACCELERATION; var VELOCITY; var POSITION; diff --git a/echo/util/Bezier.hx b/echo/util/Bezier.hx index 09a7e07..6819d1d 100644 --- a/echo/util/Bezier.hx +++ b/echo/util/Bezier.hx @@ -600,7 +600,7 @@ class Bezier implements Disposable { } } -@:enum abstract BezierCurve(Int) to Int from Int { +enum abstract BezierCurve(Int) to Int from Int { var Linear = 1; var Quadratic = 2; var Cubic = 3;