Пример #1
0
        private void OnClick(MouseButtonEvent e)
        {
            var button = ServerInput.ToServerButton(e.Button);
            var mods   = ServerInput.ToServerModifiers(e.Modifiers);

            SendMessage("click", e.Position, button, mods);
        }
Пример #2
0
        private void OnBeltClick(BeltClickEvent e)
        {
            var button = ServerInput.ToServerButton(e.Button);
            var mods   = ServerInput.ToServerModifiers(e.Modifiers);

            SendMessage("belt", e.Slot, button, mods);
        }
Пример #3
0
        private void OnPlaced(MapPlaceEvent e)
        {
            var button = ServerInput.ToServerButton(e.Button);
            var mods   = ServerInput.ToServerModifiers(e.Modifiers);

            SendMessage("place", e.MapCoord, button, mods);
        }
Пример #4
0
        private void OnMapClick(MapClickEvent e)
        {
            var button = ServerInput.ToServerButton(e.Button);
            var mods   = ServerInput.ToServerModifiers(e.Modifiers);

            if (e.Gob != null)
            {
                SendMessage("click", e.ScreenCoord, e.MapCoord, button, mods, e.Gob.Id, e.Gob.Position);
            }
            else
            {
                SendMessage("click", e.ScreenCoord, e.MapCoord, button, mods);
            }
        }
Пример #5
0
        private void OnPartyMemberClick(PartyMemberClickEvent e)
        {
            var button = ServerInput.ToServerButton(e.Button);

            SendMessage("click", e.MemberId, button);
        }
Пример #6
0
 private void OnGive(CombatRelationClickEvent e)
 {
     SendMessage("give", e.Relation.Id, ServerInput.ToServerButton(e.Button));
 }