From 178651ceaa8d760170394e9c9ee1542e09415422 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 16 Sep 2021 13:25:30 -0400 Subject: [PATCH] Remove enum type --- .../floorplan/pixi-tilemap/RectTileLayer.ts | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/room/floorplan/pixi-tilemap/RectTileLayer.ts b/src/room/floorplan/pixi-tilemap/RectTileLayer.ts index 55819bc8..66692837 100644 --- a/src/room/floorplan/pixi-tilemap/RectTileLayer.ts +++ b/src/room/floorplan/pixi-tilemap/RectTileLayer.ts @@ -6,22 +6,23 @@ import { Constant } from './Constant'; import { RectTileGeom } from './RectTileShader'; import { TileRenderer } from './TileRenderer'; -enum PointStruct { - U = 0, - V, - X, - Y, - TileWidth, - TileHeight, - Rotate, - AnimX, - AnimY, - TextureIndex, - AnimCountX, - AnimCountY, - Alpha, - YAxis, - XAxis +class PointStruct +{ + public static U = 0; + public static V = 1; + public static X = 2; + public static Y = 3; + public static TileWidth = 4; + public static TileHeight = 5; + public static Rotate = 6; + public static AnimX = 7; + public static AnimY = 8; + public static TextureIndex = 9; + public static AnimCountX = 10; + public static AnimCountY = 11; + public static Alpha = 12; + public static YAxis = 13; + public static XAxis = 14; } export const POINT_STRUCT_SIZE_TWO = (Object.keys(PointStruct).length / 2); //export const POINT_STRUCT_SIZE = 12;