Пример #1
0
        public HostGestureEventArgs(HMessage packet)
        {
            _packet = packet;
            Header  = _packet.Header;

            Gesture = (HGesture)_packet.ReadInt(0);
        }
Пример #2
0
        public PlayerGestureEventArgs(HMessage packet)
        {
            _packet = packet;
            Header  = _packet.Header;

            PlayerIndex = _packet.ReadInt(0);
            Gesture     = (HGesture)_packet.ReadInt(4);
        }
Пример #3
0
        public void Gesture(HGesture gesture)
        {
            switch (gesture)
            {
            case HGesture.Wave: Say("o/"); break;

            case HGesture.Idle: Say(":idle"); break;

            case HGesture.ThumbsUp: Say("_b"); break;

            case HGesture.BlowKiss: Say(":kiss"); break;

            case HGesture.Laugh: Say(":whisper  :D"); break;
            }
        }
Пример #4
0
 public PlayerGestureEventArgs(Func<Task> continuation, int step, HMessage packet)
     : base(continuation, step, packet)
 {
     Index = packet.ReadInteger();
     Gesture = (HGesture)packet.ReadInteger();
 }
Пример #5
0
 public PlayerGestureEventArgs(Func <Task> continuation, int step, HMessage packet)
     : base(continuation, step, packet)
 {
     Index   = packet.ReadInteger();
     Gesture = (HGesture)packet.ReadInteger();
 }
Пример #6
0
 public HostGestureEventArgs(Func <Task> continuation, int step, HMessage packet)
     : base(continuation, step, packet)
 {
     Gesture = (HGesture)packet.ReadInteger();
 }
Пример #7
0
 public HostGestureEventArgs(Func<Task> continuation, int step, HMessage packet)
     : base(continuation, step, packet)
 {
     Gesture = (HGesture)packet.ReadInteger();
 }