删除了GamingEventArgs的characters参数

This commit is contained in:
milimoe 2024-08-03 22:44:19 +08:00
parent b73b37c45e
commit 8ba4ef263f
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
2 changed files with 1 additions and 3 deletions

View File

@ -56,7 +56,6 @@ namespace Milimoe.FunGame.Core.Library.Common.Addon.Example
GamingEventArgs eventArgs = instance.EventArgs; GamingEventArgs eventArgs = instance.EventArgs;
room = eventArgs.Room; room = eventArgs.Room;
users = eventArgs.Users; users = eventArgs.Users;
characters = eventArgs.Characters;
// 客户端做好准备后,等待服务器的消息通知,下面可以根据需求进一步处理 // 客户端做好准备后,等待服务器的消息通知,下面可以根据需求进一步处理
} }

View File

@ -2,10 +2,9 @@
namespace Milimoe.FunGame.Core.Library.Common.Event 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 Room Room { get; } = room;
public List<User> Users { get; } = users; public List<User> Users { get; } = users;
public Dictionary<string, Character> Characters { get; } = characters ?? [];
} }
} }