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

◆ TryGetTreeBranchAndRequestIfNotReady()

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

Definition at line 430 of file TilePaintSystemV2.cs.

431 {
432 TreeFoliageVariantKey treeFoliageVariantKey = default(TreeFoliageVariantKey);
433 treeFoliageVariantKey.TextureIndex = treeTopIndex;
434 treeFoliageVariantKey.TextureStyle = treeTopStyle;
435 treeFoliageVariantKey.PaintColor = paintColor;
436 TreeFoliageVariantKey lookupKey = treeFoliageVariantKey;
438 {
439 return value.Target;
440 }
442 return null;
443 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Dictionary< TreeFoliageVariantKey, TreeBranchTargetHolder > _treeBranchRenders
void RequestTreeBranch(ref TreeFoliageVariantKey lookupKey)

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

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