예제 #1
0
 /// <summary>
 ///     Raises the <see cref="RconCommand" /> event.
 /// </summary>
 /// <param name="e">An <see cref="RconEventArgs" /> that contains the event data. </param>
 protected virtual void OnRconCommand(RconEventArgs e)
 {
     if (RconCommand != null)
         RconCommand(this, e);
 }
예제 #2
0
        internal bool OnRconCommand(string command)
        {
            var args = new RconEventArgs(command);
            OnRconCommand(args);

            return args.Success;
        }
예제 #3
0
 /// <summary>
 ///     Raises the <see cref="RconCommand" /> event.
 /// </summary>
 /// <param name="e">An <see cref="RconEventArgs" /> that contains the event data. </param>
 protected virtual void OnRconCommand(RconEventArgs e)
 {
     RconCommand?.Invoke(this, e);
 }