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

◆ TryGetWallAndRequestIfNotReady()

Texture2D Terraria.GameContent.TilePaintSystemV2.TryGetWallAndRequestIfNotReady ( int wallType,
int paintColor )
inline

Definition at line 401 of file TilePaintSystemV2.cs.

402 {
403 WallVariationKey wallVariationKey = default(WallVariationKey);
404 wallVariationKey.WallType = wallType;
405 wallVariationKey.PaintColor = paintColor;
406 WallVariationKey lookupKey = wallVariationKey;
408 {
409 return value.Target;
410 }
412 return null;
413 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Dictionary< WallVariationKey, WallRenderTargetHolder > _wallsRenders
void RequestWall(ref WallVariationKey lookupKey)

References Terraria.GameContent.TilePaintSystemV2._wallsRenders, Terraria.GameContent.TilePaintSystemV2.RequestWall(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by Terraria.GameContent.Drawing.WallDrawing.GetTileDrawTexture().