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

◆ VisualizeChestTransfer_CoinsBatch()

static void Terraria.Chest.VisualizeChestTransfer_CoinsBatch ( Vector2 position,
Vector2 chestPosition,
long coinsMoved )
inlinestatic

Visually moves coinsMoved worth of coins from position to chestPosition .
If called on F:Terraria.ID.NetmodeID.MultiplayerClient, sync the transfer to all clients.

Parameters
positionThe original position of the coins in world coordinates.
chestPositionThe position of the destination chest in world coordinates.
coinsMovedThe value of the coins moved in copper coins.

Definition at line 503 of file Chest.cs.

504 {
505 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
506 //IL_001e: Unknown result type (might be due to invalid IL or missing references)
507 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
508 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
509 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
510 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
511 int[] array = Utils.CoinsSplit(coinsMoved);
512 for (int i = 0; i < array.Length; i++)
513 {
514 if (array[i] >= 1)
515 {
517 {
518 PositionInWorld = position,
519 MovementVector = chestPosition - position,
520 UniqueInfoPiece = 71 + i
521 });
522 }
523 }
524 }
static void BroadcastOrRequestParticleSpawn(ParticleOrchestraType type, ParticleOrchestraSettings settings)

References Terraria.GameContent.Drawing.ParticleOrchestrator.BroadcastOrRequestParticleSpawn(), and Terraria.Utils.CoinsSplit().

Referenced by Terraria.UI.ChestUI.QuickStack().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: