PickNPCEmote() 공개 메소드

public PickNPCEmote ( WorldUIAnchor other = null ) : void
other WorldUIAnchor
리턴 void
예제 #1
0
 public static int NewBubbleNPC(WorldUIAnchor bubbleAnchor, int time, WorldUIAnchor other = null)
 {
     EmoteBubble emoteBubble = new EmoteBubble(0, bubbleAnchor, time);
     emoteBubble.ID = EmoteBubble.AssignNewID();
     EmoteBubble.byID[emoteBubble.ID] = emoteBubble;
     emoteBubble.PickNPCEmote(other);
     if (Main.netMode == 2)
     {
         Tuple<int, int> tuple = EmoteBubble.SerializeNetAnchor(bubbleAnchor);
         NetMessage.SendData((int)PacketTypes.EmoteBubble, -1, -1, "", emoteBubble.ID, (float)tuple.Item1, (float)tuple.Item2, (float)time, emoteBubble.emote, emoteBubble.metadata, 0);
     }
     return emoteBubble.ID;
 }
예제 #2
0
        public static int NewBubbleNPC(WorldUIAnchor bubbleAnchor, int time, WorldUIAnchor other = null)
        {
            EmoteBubble emoteBubble = new EmoteBubble(0, bubbleAnchor, time);

            emoteBubble.ID = EmoteBubble.AssignNewID();
            EmoteBubble.byID[emoteBubble.ID] = emoteBubble;
            emoteBubble.PickNPCEmote(other);
            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, emoteBubble.emote, emoteBubble.metadata, 0);
            }
            return(emoteBubble.ID);
        }