Beispiel #1
0
        public bool InteractDoBefore(
            EntityUid user,
            EntityUid used,
            EntityUid?target,
            EntityCoordinates clickLocation,
            bool canReach)
        {
            var ev = new BeforeInteractEvent(user, used, target, clickLocation, canReach);

            RaiseLocalEvent(used, ev, false);
            return(ev.Handled);
        }
        public async Task <bool> InteractDoBefore(
            IEntity user,
            IEntity used,
            IEntity?target,
            EntityCoordinates clickLocation,
            bool canReach)
        {
            var ev = new BeforeInteractEvent(user, used, target, clickLocation, canReach);

            RaiseLocalEvent(used.Uid, ev, false);
            return(ev.Handled);
        }