mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 04:29:36 +08:00
删除了GamingEventArgs的characters参数
This commit is contained in:
parent
b73b37c45e
commit
8ba4ef263f
@ -56,7 +56,6 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon.Example
|
||||
GamingEventArgs eventArgs = instance.EventArgs;
|
||||
room = eventArgs.Room;
|
||||
users = eventArgs.Users;
|
||||
characters = eventArgs.Characters;
|
||||
// 客户端做好准备后,等待服务器的消息通知,下面可以根据需求进一步处理
|
||||
}
|
||||
|
||||
|
@ -2,10 +2,9 @@
|
||||
|
||||
namespace Milimoe.FunGame.Core.Library.Common.Event
|
||||
{
|
||||
public class GamingEventArgs(Room room, List<User> users, Dictionary<string, Character>? characters = null) : GeneralEventArgs
|
||||
public class GamingEventArgs(Room room, List<User> users, params object[] objs) : GeneralEventArgs(objs)
|
||||
{
|
||||
public Room Room { get; } = room;
|
||||
public List<User> Users { get; } = users;
|
||||
public Dictionary<string, Character> Characters { get; } = characters ?? [];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user