Remove enum type

This commit is contained in:
Bill 2021-09-16 13:25:30 -04:00
parent 100ef54328
commit 178651ceaa

View File

@ -6,22 +6,23 @@ import { Constant } from './Constant';
import { RectTileGeom } from './RectTileShader'; import { RectTileGeom } from './RectTileShader';
import { TileRenderer } from './TileRenderer'; import { TileRenderer } from './TileRenderer';
enum PointStruct { class PointStruct
U = 0, {
V, public static U = 0;
X, public static V = 1;
Y, public static X = 2;
TileWidth, public static Y = 3;
TileHeight, public static TileWidth = 4;
Rotate, public static TileHeight = 5;
AnimX, public static Rotate = 6;
AnimY, public static AnimX = 7;
TextureIndex, public static AnimY = 8;
AnimCountX, public static TextureIndex = 9;
AnimCountY, public static AnimCountX = 10;
Alpha, public static AnimCountY = 11;
YAxis, public static Alpha = 12;
XAxis public static YAxis = 13;
public static XAxis = 14;
} }
export const POINT_STRUCT_SIZE_TWO = (Object.keys(PointStruct).length / 2); export const POINT_STRUCT_SIZE_TWO = (Object.keys(PointStruct).length / 2);
//export const POINT_STRUCT_SIZE = 12; //export const POINT_STRUCT_SIZE = 12;