Exemple #1
0
 /// <summary>Called when a player logs in, to raise the player log in events.</summary>
 /// <param name="player">The player.</param>
 /// <param name="e">The <see cref="WheelMUD.Core.Events.GameEvent"/> instance containing the event data.</param>
 public void OnPlayerLogIn(Thing player, GameEvent e)
 {
     GlobalPlayerLogInEvent?.Invoke(player.Parent, e);
 }
Exemple #2
0
 /// <summary>Called when a player logs out, to raise the player log out events.</summary>
 /// <param name="player">The player.</param>
 /// <param name="e">The event arguments.</param>
 public void OnPlayerLogOut(Thing player, GameEvent e)
 {
     GlobalPlayerLogOutEvent?.Invoke(player.Parent, e);
     RemovePlayer(player);
 }
Exemple #3
0
 /// <summary>
 /// Receives an event.
 /// </summary>
 /// <param name="root">The root.</param>
 /// <param name="theEvent">The event to be received.</param>
 public void Receive(Thing root, GameEvent theEvent)
 {
     ////this.brain.ProcessStimulus(theEvent);
 }
Exemple #4
0
 /// <summary>Raises the <see cref="MovementEvent"/> event.</summary>
 /// <param name="e">The <see cref="WheelMUD.Core.Events.GameEvent"/> instance containing the event data.</param>
 /// <param name="eventScope">The base target(s) to broadcast to, including their children.</param>
 public void OnMovementEvent(GameEvent e, EventScope eventScope)
 {
     OnEvent(t => t.MovementEvent, e, eventScope);
 }
Exemple #5
0
 /// <summary>Raises the <see cref="CombatEvent"/> event.</summary>
 /// <param name="e">The <see cref="WheelMUD.Core.Events.GameEvent"/> instance containing the event data.</param>
 /// <param name="eventScope">The base target(s) to broadcast to, including their children.</param>
 public void OnCombatEvent(GameEvent e, EventScope eventScope)
 {
     OnEvent(t => t.CombatEvent, e, eventScope);
 }
Exemple #6
0
 /// <summary>Raises the <see cref="MiscellaneousEvent"/> event.</summary>
 /// <param name="e">The <see cref="WheelMUD.Core.Events.GameEvent"/> instance containing the event data.</param>
 /// <param name="eventScope">The base target(s) to broadcast to, including their children.</param>
 public void OnMiscellaneousEvent(GameEvent e, EventScope eventScope)
 {
     OnEvent(t => t.MiscellaneousEvent, e, eventScope);
 }
Exemple #7
0
 /// <summary>Raises the <see cref="CommunicationEvent"/> event.</summary>
 /// <param name="e">The <see cref="WheelMUD.Core.Events.GameEvent"/> instance containing the event data.</param>
 /// <param name="eventScope">The base target(s) to broadcast to, including their children.</param>
 public void OnCommunicationEvent(GameEvent e, EventScope eventScope)
 {
     OnEvent(t => t.CommunicationEvent, e, eventScope);
 }