public static int NewBubble(int emoticon, WorldUIAnchor bubbleAnchor, int time) { EmoteBubble emoteBubble = new EmoteBubble(emoticon, bubbleAnchor, time) { ID = EmoteBubble.AssignNewID() }; EmoteBubble.byID[emoteBubble.ID] = emoteBubble; if (Main.netMode == 2) { Tuple <int, int> tuple = EmoteBubble.SerializeNetAnchor(bubbleAnchor); NetMessage.SendData(91, -1, -1, (NetworkText)null, emoteBubble.ID, (float)tuple.Item1, (float)tuple.Item2, (float)time, emoticon, 0, 0); } EmoteBubble.OnBubbleChange(emoteBubble.ID); return(emoteBubble.ID); }