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

◆ SerializeNetAnchor()

static Tuple< int, int > Terraria.GameContent.UI.EmoteBubble.SerializeNetAnchor ( WorldUIAnchor anch)
inlinestatic

Definition at line 76 of file EmoteBubble.cs.

77 {
78 if (anch.type == WorldUIAnchor.AnchorType.Entity)
79 {
80 int item = 0;
81 if (anch.entity is NPC)
82 {
83 item = 0;
84 }
85 else if (anch.entity is Player)
86 {
87 item = 1;
88 }
89 else if (anch.entity is Projectile)
90 {
91 item = 2;
92 }
93 return Tuple.Create(item, anch.entity.whoAmI);
94 }
95 return Tuple.Create(0, 0);
96 }

References System.item.

Referenced by Terraria.GameContent.UI.EmoteBubble.NewBubble(), and Terraria.GameContent.UI.EmoteBubble.NewBubbleNPC().