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

◆ NewBubbleNPC()

static int Terraria.GameContent.UI.EmoteBubble.NewBubbleNPC ( WorldUIAnchor bubbleAnchor,
int time,
WorldUIAnchor other = null )
inlinestatic

Definition at line 132 of file EmoteBubble.cs.

133 {
134 if (Main.netMode == 1)
135 {
136 return -1;
137 }
139 emoteBubble.ID = AssignNewID();
141 emoteBubble.PickNPCEmote(other);
142 if (Main.netMode == 2)
143 {
145 NetMessage.SendData(91, -1, -1, null, emoteBubble.ID, tuple.Item1, tuple.Item2, time, emoteBubble.emote, emoteBubble.metadata);
146 }
147 return emoteBubble.ID;
148 }
static Dictionary< int, EmoteBubble > byID
EmoteBubble(int emotion, WorldUIAnchor bubbleAnchor, int time=180)
static Tuple< int, int > SerializeNetAnchor(WorldUIAnchor anch)

References Terraria.GameContent.UI.EmoteBubble.EmoteBubble(), Terraria.GameContent.UI.EmoteBubble.AssignNewID(), Terraria.GameContent.UI.EmoteBubble.byID, Terraria.Main.netMode, System.other, Terraria.NetMessage.SendData(), and Terraria.GameContent.UI.EmoteBubble.SerializeNetAnchor().

Referenced by Terraria.NPC.FindFrame().