TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Lookup< T >() [2/2]

static T Terraria.ModLoader.PosData< T >.Lookup< T > ( this PosData< T >[] posMap,
int x,
int y )
inlinestatic

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.

Definition at line 190 of file PosData.cs.

191 {
192 return posMap.Lookup(CoordsToPos(x, y));
193 }
static int CoordsToPos(int x, int y)
Gets a Position ID based on the x,y position. If using in an order sensitive case,...
Definition PosData.cs:140

References Terraria.ModLoader.PosData< T >.CoordsToPos().

+ Here is the call graph for this function: