Riwmorld
|
Classes | |
struct | CellRectIterator |
struct | Enumerator |
Public Member Functions | |
CellRect (int minX, int minZ, int width, int height) | |
CellRect | ClipInsideMap (Map map) |
CellRect | ClipInsideRect (CellRect otherRect) |
IntVec3 | ClosestCellTo (IntVec3 c) |
float | ClosestDistSquaredTo (IntVec3 c) |
bool | Contains (IntVec3 c) |
CellRect | ContractedBy (int dist) |
void | DebugDraw () |
override bool | Equals (object obj) |
bool | Equals (CellRect other) |
CellRect | ExpandedBy (int dist) |
bool | FullyContainedWithin (CellRect within) |
IEnumerable< IntVec3 > | GetEdgeCells (Rot4 dir) |
IEnumerator< IntVec3 > | GetEnumerator () |
override int | GetHashCode () |
CellRect.CellRectIterator | GetIterator () |
bool | InBounds (Map map) |
override string | ToString () |
Static Public Member Functions | |
static CellRect | CenteredOn (IntVec3 center, int radius) |
static CellRect | FromLimits (int minX, int minZ, int maxX, int maxZ) |
static CellRect | FromLimits (IntVec3 first, IntVec3 second) |
static CellRect | FromString (string str) |
static bool | operator== (CellRect lhs, CellRect rhs) |
static bool | operator!= (CellRect lhs, CellRect rhs) |
static CellRect | SingleCell (IntVec3 c) |
static CellRect | WholeMap (Map map) |
Public Attributes | |
int | minX |
int | maxX |
int | minZ |
int | maxZ |
Properties | |
int | Area [get] |
IntVec3 | BottomLeft [get] |
IEnumerable< IntVec3 > | Cells [get] |
IEnumerable< IntVec2 > | Cells2D [get] |
IntVec3 | CenterCell [get] |
Vector3 | CenterVector3 [get] |
IEnumerable< IntVec3 > | EdgeCells [get] |
int | Height [get, set] |
IntVec3 | RandomCell [get] |
Vector3 | RandomVector3 [get] |
IntVec3 | TopRight [get] |
int | Width [get, set] |