-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from Controllerdestiny/main
更新: 为EconomicsAPI 添加货币更改事件
- Loading branch information
Showing
13 changed files
with
130 additions
and
30 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
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,10 @@ | ||
| ||
|
||
namespace EconomicsAPI.Enumerates; | ||
|
||
public enum CurrencyUpdateType | ||
{ | ||
Added, | ||
|
||
Delete | ||
} |
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,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace EconomicsAPI.EventArgs; | ||
|
||
public class BaseEventArgs | ||
{ | ||
public bool Handler { get; set; } = false; | ||
} |
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
EconomicsAPI/EventArgs/PlayerEventArgs/BasePlayerEventArgs.cs
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,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using TShockAPI; | ||
|
||
namespace EconomicsAPI.EventArgs.PlayerEventArgs; | ||
|
||
public class BasePlayerEventArgs : BaseEventArgs | ||
{ | ||
public TSPlayer Player { get; init; } | ||
} |
10 changes: 10 additions & 0 deletions
10
EconomicsAPI/EventArgs/PlayerEventArgs/PlayerCountertopArgs.cs
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,10 @@ | ||
using EconomicsAPI.Model; | ||
|
||
namespace EconomicsAPI.EventArgs.PlayerEventArgs; | ||
|
||
public class PlayerCountertopArgs : BasePlayerEventArgs | ||
{ | ||
public List<CountertopMessage> Messages { get; init; } = new(); | ||
|
||
public PingData Ping { get; init; } = new(); | ||
} |
13 changes: 13 additions & 0 deletions
13
EconomicsAPI/EventArgs/PlayerEventArgs/PlayerCurrencyUpdateArgs.cs
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,13 @@ | ||
using EconomicsAPI.Enumerates; | ||
using TShockAPI; | ||
|
||
namespace EconomicsAPI.EventArgs.PlayerEventArgs; | ||
|
||
public class PlayerCurrencyUpdateArgs: BasePlayerEventArgs | ||
{ | ||
public long Current { get; init; } | ||
|
||
public CurrencyUpdateType CurrentType { get; init; } | ||
|
||
public long Change { get; init; } | ||
} |
8 changes: 2 additions & 6 deletions
8
EconomicsAPI/EventArgs/PlayerKillNpcArgs.cs → ...Args/PlayerEventArgs/PlayerKillNpcArgs.cs
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