예제 #1
0
        public void Handle(NetworkManager nm, Bot core)
        {
            if (!core.EnableCpe)
                core.RaiseErrorMessage("Protocol error: Received SetClickDistance while CPE Disabled.");

            if (!core.ClientSupportedExtensions.Contains(CPEExtensions.ClickDistance))
                core.RaiseErrorMessage("Protocol error: Received SetClickDistance, which client does not support.");

            core.ClickDistance = Distance;
            core.RaiseClickDistanceSet(Distance);
        }