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KNGUFPWXAUKO7QC
I33Z5QD6JHPO7W7G3EHGBIXQABW6ZOC2W4NJP6L5ENDPFRORUFNAC
XIPU27GAVXMAKDP42DDSYNA6DSN5WBHH6AG4EK6YIIM43AQQHQAAC
XF52N4U7HWXOF4PDSCR7LCUENLTSXLWEZGS2IJ6562KYI567Z2GAC
CD5FF75KTOBTMVMTMCKMR6F5DFKOF26I5K43ITNHGBI3ZAZHA4RAC
NZIEX6J6Q6DSJKNSCTHNIA6EJDQEGMK3ZSP3LKX2UAEDHURQPRVQC
4PLSNSVW4VOQW5ZXXZGUWB56WI33SXTGWOCD7PNE36OWDGD7NRJAC
5I5QA3YK5G5QQCXMSDOEAX3A74LVXV7PYWAIHMLFANR2GUFWMKGQC
5YUI4V7A6ONEYREG5CXWHMBYCOP6Q3GMMQD2OTHXZAGKCGM4FWBAC
LTG4LQJEMFY22QOI6E5HM3U4OE3JCYRFJ6VGW3KI3AFTMHZCTWRAC
DIEGZM3YMQCKTQW3NLESFZBOGMWW6FT6TZOUL7IUAJD2X5IISUYAC
4JF2MUNF23IFAVVECZNP3JJLFPEB36V7FDRQOKIZNF6Q2FAGOFRQC
3JTZIZGE6WPLZCIWXXLG3SQA2LVSVP26P7U52YBMBTY2VCC6LBLAC
CXQW7UICWDJFL3M44O2XVH6JNCRDGRBMPMYR2LEGFJCANPG4YASAC
VPXUP5WZTVC3OVD73TNKPK43IAGFXGUGCEJT56JM4IT4APYQXUHAC
public event EventHandler<WeaponEquippedArgs> OnWeaponEquipped;
public event EventHandler<CombatFormEquippedArgs> OnCombatFormEquipped;
public event EventHandler<TakeActionArgs> OnTakeAction;
public event EventHandler<UnitActionArgs> OnPlannedActionsChanged;
public event EventHandler<WeaponEquippedEventArgs> WeaponEquipped;
public event EventHandler<CombatFormEquippedEventArgs> CombatFormEquipped;
public event EventHandler<TakeActionEventArgs> ActionTaken;
public event EventHandler<UnitActionEventArgs> PlannedActionsChanged;
protected void OnWeaponEquipped(WeaponEquippedEventArgs e) {
WeaponEquipped?.Invoke(this, e);
}
protected void OnCombatFormEquipped(CombatFormEquippedEventArgs e) {
CombatFormEquipped?.Invoke(this, e);
}
protected void OnActionTaken(TakeActionEventArgs e) {
ActionTaken?.Invoke(this, e);
}
protected void OnPlannedActionsChanged(UnitActionEventArgs e) {
PlannedActionsChanged?.Invoke(this, e);
}
void EventAggregator_onToggleWeaveBuilderScreen(object sender, EventArgs e) {
protected void OnDestroy() {
eventAggregator.WeaveBuilderScreenToggleSelected -= OnWeaveBuilderScreenToggleSelected;
}
void OnWeaveBuilderScreenToggleSelected(object sender, EventArgs e) {
_eventAggregator.OnUnitSelected -= EventAggregator_OnUnitSelected;
_eventAggregator.OnPartyMemberSelected -= EventAggregator_OnPartyMemberSelected;
_eventAggregator.UnitSelected -= OnUnitSelected;
_eventAggregator.PartyMemberSelected -= OnPartyMemberSelected;
_eventAggregator.OnUnitSelected += EventAggregator_OnUnitSelected;
_eventAggregator.OnPartyMemberSelected += EventAggregator_OnPartyMemberSelected;
_eventAggregator.UnitSelected += OnUnitSelected;
_eventAggregator.PartyMemberSelected += OnPartyMemberSelected;
eventAggregator.OnUnitSelected -= EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected -= PartyMemberPortrait_OnPartyMemberSelected;
eventAggregator.UnitSelected -= OnUnitSelected;
eventAggregator.PartyMemberSelected -= OnPartyMemberSelected;
private void EventAggregator_OnUnitSelected(object sender, UnitActionArgs unitSelectedArgs) {
if ((unitSelectedArgs.UnitTransform.GetComponent<PartyMember>() != null) && unitSelectedArgs.UnitTransform.TryGetComponent<Weaver>(out var weaver)) {
private void OnUnitSelected(object sender, UnitActionEventArgs e) {
if ((e.UnitTransform.GetComponent<PartyMember>() != null) && e.UnitTransform.TryGetComponent<Weaver>(out var weaver)) {
private void PartyMemberPortrait_OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedArgs partyMemberSelectedArgs) {
if (partyMemberSelectedArgs.PartyMember.TryGetComponent<Weaver>(out var weaver)) {
private void OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedEventArgs e) {
if (e.PartyMember.TryGetComponent<Weaver>(out var weaver)) {
_selectedWeaver.OnWeaponEquipped -= Weaver_OnWeaponEquipped;
eventAggregator.OnRuneWeavingBankChanged -= EventAggregator_OnRuneWeavingBankChanged;
_selectedWeaver.WeaponEquipped -= OnWeaponEquipped;
eventAggregator.RuneWeavingBankChanged -= OnRuneWeavingBankChanged;
_selectedWeaver.OnWeaponEquipped += Weaver_OnWeaponEquipped;
eventAggregator.OnRuneWeavingBankChanged += EventAggregator_OnRuneWeavingBankChanged;
_selectedWeaver.WeaponEquipped += OnWeaponEquipped;
eventAggregator.RuneWeavingBankChanged += OnRuneWeavingBankChanged;
eventAggregator.OnUnitSelected += EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected += EventAggregator_OnPartyMemberSelected;
eventAggregator.UnitSelected += OnUnitSelected;
eventAggregator.PartyMemberSelected += OnPartyMemberSelected;
eventAggregator.OnUnitSelected -= EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected -= EventAggregator_OnPartyMemberSelected;
eventAggregator.UnitSelected -= OnUnitSelected;
eventAggregator.PartyMemberSelected -= OnPartyMemberSelected;
void EventAggregator_OnUnitSelected(object sender, UnitActionArgs unitSelectedArgs) {
if ((unitSelectedArgs.UnitTransform.GetComponent<PartyMember>() != null) && unitSelectedArgs.UnitTransform.TryGetComponent<Weaver>(out var weaver)) {
void OnUnitSelected(object sender, UnitActionEventArgs e) {
if ((e.UnitTransform.GetComponent<PartyMember>() != null) && e.UnitTransform.TryGetComponent<Weaver>(out var weaver)) {
void EventAggregator_OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedArgs partyMemberSelectedArgs) {
if (partyMemberSelectedArgs.PartyMember.TryGetComponent<Weaver>(out var weaver)) {
void OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedEventArgs e) {
if (e.PartyMember.TryGetComponent<Weaver>(out var weaver)) {
void EventAggregator_OnUnitSelected(object sender, UnitActionArgs unitSelectedArgs) {
if ((unitSelectedArgs.UnitTransform.GetComponent<PartyMember>() != null) && unitSelectedArgs.UnitTransform.TryGetComponent<Weaver>(out var weaver)) {
void OnUnitSelected(object sender, UnitActionEventArgs e) {
if ((e.UnitTransform.GetComponent<PartyMember>() != null) && e.UnitTransform.TryGetComponent<Weaver>(out var weaver)) {
void EventAggregator_OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedArgs partyMemberSelectedArgs) {
if (partyMemberSelectedArgs.PartyMember.TryGetComponent<Weaver>(out var weaver)) {
void OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedEventArgs e) {
if (e.PartyMember.TryGetComponent<Weaver>(out var weaver)) {
_eventAggregator.OnPartyMemberSelected -= EventAggregator_OnPartyMemberSelected;
_eventAggregator.OnUnitSelected -= EventAggregator_OnUnitSelected;
partyToDisplay.OnCompositionChanged -= Party_OnCompositionChanged;
_eventAggregator.UnitSelected -= OnUnitSelected;
_eventAggregator.PartyMemberSelected -= OnPartyMemberSelected;
void EventAggregator_OnUnitSelected(object sender, UnitActionArgs unitSelectedArgs) {
if (unitSelectedArgs.UnitTransform.TryGetComponent(out PartyMember partyMember)) {
void OnUnitSelected(object sender, UnitActionEventArgs e) {
if (e.UnitTransform.TryGetComponent(out PartyMember partyMember)) {
void EventAggregator_OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedArgs partyMemberSelectedArgs) {
SetSelectedPortraitByCharacterName(partyMemberSelectedArgs.PartyMember.name);
void OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedEventArgs e) {
SetSelectedPortraitByCharacterName(e.PartyMember.name);
eventAggregator.OnUnitSelected += EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected += EventAggregator_OnPartyMemberSelected;
eventAggregator.UnitSelected += OnUnitSelected;
eventAggregator.PartyMemberSelected += OnPartyMemberSelected;
eventAggregator.OnUnitSelected -= EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected -= EventAggregator_OnPartyMemberSelected;
eventAggregator.UnitSelected -= OnUnitSelected;
eventAggregator.PartyMemberSelected -= OnPartyMemberSelected;
void EventAggregator_OnUnitSelected(object sender, UnitActionArgs unitSelectedArgs) {
if ((unitSelectedArgs.UnitTransform.GetComponent<PartyMember>() != null) && unitSelectedArgs.UnitTransform.TryGetComponent<Weaver>(out var weaver)) {
void OnUnitSelected(object sender, UnitActionEventArgs e) {
if ((e.UnitTransform.GetComponent<PartyMember>() != null) && e.UnitTransform.TryGetComponent<Weaver>(out var weaver)) {
void EventAggregator_OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedArgs partyMemberSelectedArgs) {
if (partyMemberSelectedArgs.PartyMember.TryGetComponent<Weaver>(out var weaver)) {
void OnPartyMemberSelected(object sender, EventAggregator.PartyMemberSelectedEventArgs e) {
if (e.PartyMember.TryGetComponent<Weaver>(out var weaver)) {
eventAggregator.InvokeOnClearPlannedActions(this, EventArgs.Empty);
eventAggregator.InvokeOnUnitMove(this, new(hit.point));
eventAggregator.OnPlannedActionsClearSelected(this, EventArgs.Empty);
eventAggregator.OnUnitMove(this, new(hit.point));
public event EventHandler<PartyMemberSelectedArgs> OnPartyMemberSelected;
public event EventHandler<PartyMemberSelectedEventArgs> PartyMemberSelected;
public event EventHandler<UnitActionEventArgs> UnitSelected;
public event EventHandler<UnitMoveEventArgs> UnitMove;
public event EventHandler<TryRemovePlannedActionEventArgs> RemovePlannedActionSelected;
public event EventHandler<UnitActionEventArgs> TargetSelected;
public event EventHandler<UnitActionArgs> OnUnitSelected;
public event EventHandler<UnitMoveArgs> OnUnitMove;
public event EventHandler<TryRemovePlannedActionArgs> OnTryRemovePlannedAction;
public event EventHandler<UnitActionArgs> OnUnitTargeted;
public event EventHandler<WeaponSelectedEventArgs> WeaponSelected;
public event EventHandler<CombatFormSelectedEventArgs> CombatFormSelected;
public event EventHandler<WeaponSelectedArgs> OnWeaponSelected;
public event EventHandler<CombatFormSelectedArgs> OnCombatFormSelected;
public event EventHandler TimeDilationSpeedUp;
public event EventHandler TimeDilationSpeedDown;
public event EventHandler TimeDilationSpeedReset;
public event EventHandler TimeDilationSpeedPause;
public event EventHandler OnTimeDilationSpeedUp;
public event EventHandler OnTimeDilationSpeedDown;
public event EventHandler OnTimeDilationSpeedReset;
public event EventHandler OnTimeDilationSpeedPause;
public event EventHandler WeaveBuilderScreenToggleSelected;
public event EventHandler<RuneWeavingBankChangedArgs> OnRuneWeavingBankChanged;
public event EventHandler<WeaveCastEventArgs> RuneWeavingCastSelected;
public event EventHandler PlannedActionsClearSelected;
public event EventHandler<TagsChangedEventArgs> TagsChanged;
public event EventHandler<WeaveCastArgs> OnSelectRuneWeavingCast;
public event EventHandler OnClearPlannedActions;
public event EventHandler<TagsChangedEventArgs> OnTagsChanged;
public void InvokeOnPartyMemberSelected(object sender, PartyMemberSelectedArgs e) {
OnPartyMemberSelected?.Invoke(sender, e);
public void OnPartyMemberSelected(object sender, PartyMemberSelectedEventArgs e) {
PartyMemberSelected?.Invoke(sender, e);
public void InvokeOnUnitSelected(object sender, UnitActionArgs e) {
OnUnitSelected?.Invoke(sender, e);
public void OnUnitSelected(object sender, UnitActionEventArgs e) {
UnitSelected?.Invoke(sender, e);
public void InvokeOnCombatFormSelected(object sender, CombatFormSelectedArgs e) {
OnCombatFormSelected?.Invoke(sender, e);
public void InvokeOnCombatFormSelected(object sender, CombatFormSelectedEventArgs e) {
CombatFormSelected?.Invoke(sender, e);
public void InvokeOnTryRemovePlannedAction(object sender, TryRemovePlannedActionArgs e) {
OnTryRemovePlannedAction?.Invoke(sender, e);
public void OnRemovePlannedActionSelected(object sender, TryRemovePlannedActionEventArgs e) {
RemovePlannedActionSelected?.Invoke(sender, e);
public void InvokeOnTimeDilationSpeedUp(object sender, EventArgs e) {
OnTimeDilationSpeedUp?.Invoke(sender, e);
public void OnTimeDilationSpeedUp(object sender, EventArgs e) {
TimeDilationSpeedUp?.Invoke(sender, e);
public void InvokeOnTimeDilationSpeedDown(object sender, EventArgs e) {
OnTimeDilationSpeedDown?.Invoke(sender, e);
public void OnTimeDilationSpeedDown(object sender, EventArgs e) {
TimeDilationSpeedDown?.Invoke(sender, e);
public void InvokeOnTimeDilationSpeedReset(object sender, EventArgs e) {
OnTimeDilationSpeedReset?.Invoke(sender, e);
public void OnTimeDilationSpeedReset(object sender, EventArgs e) {
TimeDilationSpeedReset?.Invoke(sender, e);
public void InvokeOnTimeDilationSpeedPause(object sender, EventArgs e) {
OnTimeDilationSpeedPause?.Invoke(sender, e);
public void OnTimeDilationSpeedPause(object sender, EventArgs e) {
TimeDilationSpeedPause?.Invoke(sender, e);
public void InvokeOnToggleWeaveBuilderScreen(object sender, EventArgs e) {
OnToggleWeaveBuilderScreen?.Invoke(sender, e);
public void OnWeaveBuilderScreenToggleSelected(object sender, EventArgs e) {
WeaveBuilderScreenToggleSelected?.Invoke(sender, e);
public void InvokeOnRuneWeavingBankChanged(object sender, RuneWeavingBankChangedArgs e) {
OnRuneWeavingBankChanged?.Invoke(sender, e);
public void OnRuneWeavingBankChanged(object sender, RuneWeavingBankChangedEventArgs e) {
RuneWeavingBankChanged?.Invoke(sender, e);
eventAggregator.OnClearPlannedActions -= EventAggregator_OnClearPlannedActions;
eventAggregator.OnTryRemovePlannedAction -= EventAggregator_OnTryRemovePlannedAction;
eventAggregator.OnCombatFormSelected -= EventAggregator_OnCombatFormSelected;
eventAggregator.OnUnitMove -= EventAggregator_OnUnitMove;
eventAggregator.OnWeaponSelected -= EventAggregator_OnWeaponSelected;
eventAggregator.PlannedActionsClearSelected -= OnPlannedActionsClearSelected;
eventAggregator.RemovePlannedActionSelected -= OnRemovePlannedActionSelected;
eventAggregator.CombatFormSelected -= OnCombatFormSelected;
eventAggregator.UnitMove -= OnUnitMove;
eventAggregator.WeaponSelected -= OnWeaponSelected;
eventAggregator.OnClearPlannedActions += EventAggregator_OnClearPlannedActions;
eventAggregator.OnTryRemovePlannedAction += EventAggregator_OnTryRemovePlannedAction;
eventAggregator.OnCombatFormSelected += EventAggregator_OnCombatFormSelected;
eventAggregator.OnUnitMove += EventAggregator_OnUnitMove;
eventAggregator.OnWeaponSelected += EventAggregator_OnWeaponSelected;
eventAggregator.PlannedActionsClearSelected += OnPlannedActionsClearSelected;
eventAggregator.RemovePlannedActionSelected += OnRemovePlannedActionSelected;
eventAggregator.CombatFormSelected += OnCombatFormSelected;
eventAggregator.UnitMove += OnUnitMove;
eventAggregator.WeaponSelected += OnWeaponSelected;
eventAggregator.OnUnitSelected += EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected += EventAggregator_OnPartyMemberSelected;
eventAggregator.UnitSelected += OnUnitSelected;
eventAggregator.PartyMemberSelected += OnPartyMemberSelected;
eventAggregator.OnUnitSelected -= EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected -= EventAggregator_OnPartyMemberSelected;
eventAggregator.UnitSelected -= OnUnitSelected;
eventAggregator.PartyMemberSelected -= OnPartyMemberSelected;
eventAggregator.OnTimeDilationSpeedUp += PlayerKeyActions_onTimeDilationSpeedUp;
eventAggregator.OnTimeDilationSpeedDown += PlayerKeyActions_onTimeDilationSpeedDown;
eventAggregator.OnTimeDilationSpeedReset += PlayerKeyActions_onTimeDilationSpeedReset;
eventAggregator.OnTimeDilationSpeedPause += PlayerKeyActions_onTimeDilationSpeedPause;
eventAggregator.TimeDilationSpeedUp += OnTimeDilationSpeedUp;
eventAggregator.TimeDilationSpeedDown += OnTimeDilationSpeedDown;
eventAggregator.TimeDilationSpeedReset += OnTimeDilationSpeedReset;
eventAggregator.TimeDilationSpeedPause += OnTimeDilationSpeedPause;
eventAggregator.OnTimeDilationSpeedUp -= PlayerKeyActions_onTimeDilationSpeedUp;
eventAggregator.OnTimeDilationSpeedDown -= PlayerKeyActions_onTimeDilationSpeedDown;
eventAggregator.OnTimeDilationSpeedReset -= PlayerKeyActions_onTimeDilationSpeedReset;
eventAggregator.OnTimeDilationSpeedPause -= PlayerKeyActions_onTimeDilationSpeedPause;
eventAggregator.TimeDilationSpeedUp -= OnTimeDilationSpeedUp;
eventAggregator.TimeDilationSpeedDown -= OnTimeDilationSpeedDown;
eventAggregator.TimeDilationSpeedReset -= OnTimeDilationSpeedReset;
eventAggregator.TimeDilationSpeedPause -= OnTimeDilationSpeedPause;