public Wall(byte index, WallFlag flags, Vector2[] sides, Vector2[] top, Vector2[] flat) { walls[index] = this; this.index = index; this.flags = flags; halfSize = new Vector3(.5f, .5f, .5f); texCoordsSides = sides; texCoordsTop = top; texCoordsFlat = flat; }
internal bool hasFlag(WallFlag find) { return flags.HasFlag(find); }
public Wall(byte index, WallFlag flags) : this(index, flags, MathCustom.toArray(Vector2.Zero), MathCustom.toArray(Vector2.Zero), MathCustom.toArray(Vector2.Zero)) { }
public Wall(byte index, WallFlag flags, int sidesX, int sidesY, int topX, int topY, int flatX, int flatY) : this(index, flags, RenderGroup.makeTextureCoords(sidesX, sidesY), RenderGroup.makeTextureCoords(topX, topY), RenderGroup.makeTextureCoords(flatX, flatY)) { }