-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump API to 1.0.7 * Add new event handler for squad promotion * Implement IMount on BitPlayer and BitServer
- Loading branch information
Showing
5 changed files
with
83 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using BattleBitAPI.Server; | ||
|
||
using BitMod.Compatibility; | ||
using BitMod.Events.Accessors; | ||
using BitMod.Events.Base; | ||
|
||
namespace BitMod.Events.Squad; | ||
|
||
public class SquadLeaderChangedEventArgs : IEventArgs, IGameserverEvent, IResponsiblePlayerEvent | ||
{ | ||
public SquadLeaderChangedEventArgs(BitServer server, Squad<BitPlayer> squad, BitPlayer leader) | ||
{ | ||
Server = server; | ||
Leader = leader; | ||
Squad = squad; | ||
} | ||
|
||
/// <summary> | ||
/// The squad that had it's leadership changed | ||
/// </summary> | ||
public Squad<BitPlayer> Squad { get; } | ||
|
||
/// <summary> | ||
/// The new leader | ||
/// </summary> | ||
public BitPlayer Leader { get; } | ||
|
||
/// <summary> | ||
/// The server this event happened on | ||
/// </summary> | ||
public BitServer Server { get; } | ||
|
||
public BitPlayer? ResponsiblePlayer => Leader; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters