2026-05-23 08:27:50 -04:00
|
|
|
using Cielonos.MainGame.Inventory;
|
|
|
|
|
using SLSUtilities.General;
|
|
|
|
|
using SoftCircuits.Collections;
|
2026-01-03 18:19:39 -05:00
|
|
|
|
|
|
|
|
namespace Cielonos.MainGame.Characters
|
|
|
|
|
{
|
2026-05-23 08:27:50 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// 玩家专用事件子模块,扩展 EventSubmodule 以包含仅属于玩家的游戏逻辑事件。
|
|
|
|
|
/// </summary>
|
2026-01-03 18:19:39 -05:00
|
|
|
public class PlayerEventSubmodule : EventSubmodule
|
|
|
|
|
{
|
2026-05-23 08:27:50 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// 主武器切换时触发,参数为新装备的主武器。
|
|
|
|
|
/// </summary>
|
|
|
|
|
public OrderedDictionary<string, PrioritizedAction<MainWeaponBase>> onMainWeaponChanged;
|
|
|
|
|
|
2026-01-03 18:19:39 -05:00
|
|
|
public PlayerEventSubmodule(CharacterBase owner) : base(owner)
|
|
|
|
|
{
|
2026-05-23 08:27:50 -04:00
|
|
|
onMainWeaponChanged = new OrderedDictionary<string, PrioritizedAction<MainWeaponBase>>();
|
2026-01-03 18:19:39 -05:00
|
|
|
}
|
|
|
|
|
}
|
2026-05-23 08:27:50 -04:00
|
|
|
}
|