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

◆ TryGetTreeTopAndRequestIfNotReady()

Texture2D Terraria.GameContent.TilePaintSystemV2.TryGetTreeTopAndRequestIfNotReady ( int treeTopIndex,
int treeTopStyle,
int paintColor )
inline

Definition at line 415 of file TilePaintSystemV2.cs.

416 {
417 TreeFoliageVariantKey treeFoliageVariantKey = default(TreeFoliageVariantKey);
418 treeFoliageVariantKey.TextureIndex = treeTopIndex;
419 treeFoliageVariantKey.TextureStyle = treeTopStyle;
420 treeFoliageVariantKey.PaintColor = paintColor;
421 TreeFoliageVariantKey lookupKey = treeFoliageVariantKey;
423 {
424 return value.Target;
425 }
427 return null;
428 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Dictionary< TreeFoliageVariantKey, TreeTopRenderTargetHolder > _treeTopRenders
void RequestTreeTop(ref TreeFoliageVariantKey lookupKey)

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

Referenced by Terraria.GameContent.Drawing.TileDrawing.GetTreeTopTexture().