コード例 #1
0
        /// <summary>
        /// Runs the script event with the given input.
        /// </summary>
        /// <param name="prio">The priority to run with.</param>
        /// <param name="oevt">The details of the script to be ran.</param>
        /// <returns>The event details after firing.</returns>
        public void Run(int prio, PlayerDisconnectedEventArgs oevt)
        {
            PlayerDisconnectedScriptEvent evt = (PlayerDisconnectedScriptEvent)Duplicate();

            evt.Player = oevt.Player;
            evt.Call(prio);
        }
コード例 #2
0
 /// <summary>
 /// Runs the script event with the given input.
 /// </summary>
 /// <param name="prio">The priority to run with.</param>
 /// <param name="oevt">The details of the script to be ran.</param>
 /// <returns>The event details after firing.</returns>
 public void Run(int prio, PlayerDisconnectedEventArgs oevt)
 {
     PlayerDisconnectedScriptEvent evt = (PlayerDisconnectedScriptEvent)Duplicate();
     evt.Player = oevt.Player;
     evt.Call(prio);
 }