|
| static int | CoordsToPos (int x, int y) |
| | Gets a Position ID based on the x,y position. If using in an order sensitive case, see NextLocation.
|
| |
| static int | FindIndex< T > (this PosData< T >[] posMap, int x, int y) |
| |
| static int | FindIndex< T > (this PosData< T >[] posMap, int pos) |
| | Searches for the value i for which.
|
| |
| static PosData< T > | Find< T > (this PosData< T >[] posMap, int pos) |
| | Raw lookup function. Always returns the raw entry in the position map. Use if default values returned are a concern, as negative position returned are ~'null'.
|
| |
| static T | Lookup< T > (this PosData< T >[] posMap, int x, int y) |
| | General purpose lookup function. Always returns a value (even if that value is default). See M:Terraria.ModLoader.PosData`1.OrderedSparseLookupBuilder.::ctor(System.Int32,System.Boolean,System.Boolean)for more info.
|
| |
| static T | Lookup< T > (this PosData< T >[] posMap, int pos) |
| | General purpose lookup function. Always returns a value (even if that value is default). See M:Terraria.ModLoader.PosData`1.OrderedSparseLookupBuilder.::ctor(System.Int32,System.Boolean,System.Boolean)for more info.
|
| |
| static bool | LookupExact< T > (this PosData< T >[] posMap, int x, int y, out T data) |
| | For use with uncompressed sparse data lookups. Checks that the exact position exists in the lookup table.
|
| |
| static bool | LookupExact< T > (this PosData< T >[] posMap, int pos, out T data) |
| | For use with uncompressed sparse data lookups. Checks that the exact position exists in the lookup table.
|
| |
| static bool | NearbySearchOrderedPosMap< T > (PosData< T >[] posMap, Point pt, int distance, out PosData< T > entry) |
| | Searches around the provided point to check for the nearest entry in the map for OrdereredSparse data Doesn't work with 'compressed' lookups from T:Terraria.ModLoader.PosData`1.OrderedSparseLookupBuilder
|
| |
Definition at line 7 of file PosData.cs.