CandideServer.EventBus.EventBusManager
Type JSONpublic class in CandideServer.EventBus
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.EventBus - Base type
System.Object - Hash
467ACEF0280FCEEB5A7264BE2C4299495EB9AA28E44AD2F0A308B39A9F02E37B
Relationships
Base type
System.Object
Referenced by types
Fields
| Name | Visibility | Signature |
|---|---|---|
Events# | public | public System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus> Events |
_unsubscribableEventBusListeners# | private | private System.Collections.Generic.Dictionary<System.Object, EventBus.EventBusListener> _unsubscribableEventBusListeners |
Methods
SendEvent
#
public System.Void SendEvent(System.String key, System.Object message, CandideServer.EventBus.EventBusArgs args, System.Boolean warnIfNothingSubscribed)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
56BFBDA91AE8C5D08B9DD3A233361AEA02B4922B03FF2067AE49A6FACAB94DB8 - Body hash
E0741FE11777C3EF671794EA1D52A9D7E2513613B60C30E3D5BCA86B5A7219AF - IL size51
Referenced calls
System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)CandideServer.EventBus.EventBus::SendEvent(System.Object, CandideServer.EventBus.EventBusArgs)System.String::Concat(System.String, System.String, System.String)CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)
Called by
String literals
Attempted to send event with key '', but there is nothing subscribed.
SendEvent
#
public System.Void SendEvent(System.String key, System.Object message, System.Boolean warnIfNothingSubscribed)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
557DCD63AF7DF45DD8C2165718060181350671B43038D507270416EA244B37B1 - Body hash
B6333EE2F5C6EE83A00BC83567BCC2E6FEDCAB871475D9624D8794FFEE14DF37 - IL size49
Referenced calls
System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)CandideServer.EventBus.EventBus::SendEvent(System.Object)System.String::Concat(System.String, System.String, System.String)CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)
Called by
CandideServer.Saving.GameSaveManager::LoadGameCandideServer.Saving.GameSaveManager::SaveGameStateCandideServer.ServerControllers.BossServerController::UpdateBossLocationStateCandideServer.ServerControllers.RewardsSController::RegisterRewardCandideServer.ServerManagers.RaidsServerManager::OnRaidBeatenCandideServer.ServerServices.PlayerServerService::RemovePlayerCandide.CandideUI.Components.Holder.CandideHotBarSlot::UseCandide.CandideUI.Components.Holder.CandideInventorySlot::GetPickupContentCandide.CandideUI.PlayerUi::CreatePlayerCharacterUiCandide.CandideUI.PlayerUi::ShowFavoursWindowCandide.CandideUI.SkillsAndFavourUi.SkillsAndFavourWindow::SetContentCandide.CandideUI.TownReport.TownReportWindow::BuildUiCandide.CandideUI.Tutorial.TutorialJournalView::SetTutorialCandide.CandideUI.UserControls.PlayerInventoryUserControl::OnMouseRightClickFuncCandide.CandideUI.Windows.CandideStackSplitWindow::OnWindowShownCandide.Entities.Bridge.ClientEntitySystemBridge::OnEntityKilledCandide.Entities.Controllers.Legacy.TreeController::OnServerSetStateCandide.Entities.Controllers.Other.FruitTreeController::OnServerSetStateCandide.Entities.PlayerState.PlayerStates.DashState::OnEnterCandide.Entities.PlayerState.PlayerStates.NormalState::UpdateCandide.Entities.PlayerState.PlayerStates.ShieldDashState::OnEnterCandide.Entities.PlayerState.PlayerStates.SpearDashState::OnEnterCandide.GameModels.Controllers.QuestsController::UpdatePersonalQuestsCandide.GameModels.Controllers.QuestsController::UpdateWorldQuestsCandide.GameModels.Controllers.TownReportsController::SyncRegisterReportsCandide.GameModels.Controllers.WorldFlagsController::SynchWorldFlagChangedCandide.GameModels.Controllers.WorldItemController::LootWorldItemCandide.GameModels.Managers.BuildingsManager::BuildingSpawnedCandide.GameModels.Managers.ConstructionsManager::TryPlaceConstructionCandide.GameModels.Managers.PlayerCharacterManager::OnLocalPlayerCharacterLoadedCandide.GameModels.Managers.QuestsManager::AddPersonalQuestsCandide.GameModels.Managers.QuestsManager::AddWorldQuests
String literals
Attempted to send event with key '', but there is nothing subscribed.
Subscribe
#
public System.Void Subscribe(System.Reflection.Assembly assembly, System.String eventBusName)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
075ADBDCB4A8C6A5E28A76F741C929E49E8FFAFDC29B565A5B99347225A255FD - Body hash
BD182FFBE06E5244E08C23743B73A921F600FE73B68910EAD41947EC5BE5E296 - IL size959
Referenced calls
System.Reflection.Assembly::GetTypes()System.Type::GetMethods(System.Reflection.BindingFlags)System.Reflection.MethodBase::get_IsStatic()System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.MemberInfo)System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable<!!0>)System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable<!!0>)System.Reflection.MethodBase::GetParameters()System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)System.Reflection.ParameterInfo::get_ParameterType()EventBusManager.<>c__DisplayClass2_0::.ctor()System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)System.Linq.Expressions.Expression::Parameter(System.Type, System.String)System.Linq.Expressions.Expression::Convert(System.Linq.Expressions.Expression, System.Type)System.Linq.Expressions.Expression::Call(System.Reflection.MethodInfo, System.Linq.Expressions.Expression, System.Linq.Expressions.Expression)System.Linq.Expressions.Expression::Lambda(System.Linq.Expressions.Expression, System.Linq.Expressions.ParameterExpression[])System.Linq.Expressions.Expression<System.Action<System.Object, CandideServer.EventBus.EventBusArgs>>::Compile()System.String::op_Inequality(System.String, System.String)System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)CandideServer.EventBus.EventBus::.ctor()System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Add(!0, !1)System.Reflection.MemberInfo::get_Name()System.String::Concat(System.String, System.String, System.String, System.String)EventBusManager.<>c__DisplayClass2_0::<Subscribe>b__0(System.Object, CandideServer.EventBus.EventBusArgs)EventBus.EventBusListener::.ctor(System.Object, System.IntPtr)System.Collections.Generic.List<EventBus.EventBusListener>::Add(!0)EventBusManager.<>c__DisplayClass2_1::.ctor()System.Linq.Expressions.Expression::Call(System.Reflection.MethodInfo, System.Linq.Expressions.Expression)System.Linq.Expressions.Expression<System.Action<System.Object>>::Compile()
Called by
String literals
EventBus:::has too many parameters to subscribehas too few parameters to subscribeparamargsEvent keyhas mismatched authorization check requirements. Detected in
Subscribe
#
public System.Void Subscribe<T>(System.String key, System.Action<T, CandideServer.EventBus.EventBusArgs> listener)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
5A3580C65FF09C321658484562773DF3D341836736333548F38C49A8D9E61EDF - Body hash
3D4C7F495317EE7A9245C2220C7B6B5B0A63DEFF9F3C3B817513B83AB2810610 - IL size96
Referenced calls
EventBusManager.<>c__DisplayClass3_0<T>::.ctor()System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)EventBusManager.<>c__DisplayClass3_0<T>::<Subscribe>b__0(System.Object, CandideServer.EventBus.EventBusArgs)EventBus.EventBusListener::.ctor(System.Object, System.IntPtr)System.Collections.Generic.List<EventBus.EventBusListener>::Add(!0)CandideServer.EventBus.EventBus::.ctor()System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Add(!0, !1)EventBusManager.<>c__DisplayClass3_0<T>::<Subscribe>b__1(System.Object, CandideServer.EventBus.EventBusArgs)
Subscribe
#
public System.Void Subscribe<T>(System.String key, System.Action<T> listener)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
6BC636AAB9B190658F87CB4B758B2A5D17045F82DF4C87D22EBA582CA33B116E - Body hash
DDEE464DD092951EF7E147A592FB896CBE47B12B8B6A9F7E35EC1480A8627B52 - IL size96
Referenced calls
EventBusManager.<>c__DisplayClass4_0<T>::.ctor()System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)EventBusManager.<>c__DisplayClass4_0<T>::<Subscribe>b__0(System.Object, CandideServer.EventBus.EventBusArgs)EventBus.EventBusListener::.ctor(System.Object, System.IntPtr)System.Collections.Generic.List<EventBus.EventBusListener>::Add(!0)CandideServer.EventBus.EventBus::.ctor()System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Add(!0, !1)EventBusManager.<>c__DisplayClass4_0<T>::<Subscribe>b__1(System.Object, CandideServer.EventBus.EventBusArgs)
SubscribeUnsubscribable
#
public System.Void SubscribeUnsubscribable<T>(System.String key, System.Action<T> listener)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
6D51CD089EE62BDD6A1E0A6BDAFF986E955731071F24CB03F2B03F7F7C798DD8 - Body hash
080FDBB0EE13B0E802280893F4DE31B44C0C68ACBC84D0F1201343287333EE2C - IL size105
Referenced calls
EventBusManager.<>c__DisplayClass5_0<T>::.ctor()EventBusManager.<>c__DisplayClass5_0<T>::<SubscribeUnsubscribable>b__0(System.Object, CandideServer.EventBus.EventBusArgs)EventBus.EventBusListener::.ctor(System.Object, System.IntPtr)System.Collections.Generic.Dictionary<System.Object, EventBus.EventBusListener>::Add(!0, !1)System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)System.Collections.Generic.List<EventBus.EventBusListener>::Add(!0)CandideServer.EventBus.EventBus::.ctor()System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Add(!0, !1)
TryGetBus
#
public System.Boolean TryGetBus(System.String key, out CandideServer.EventBus.EventBus& eventBus)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
EB3F9B781ACE2803DC821796090DB264DDACCBE035625C5BE75E5A5773E69FDD - Body hash
BE0FD81C39B03FB09AB710F5FB78569B4F2B3103B1811937A895B875DCF6D96B - IL size14
Referenced calls
System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)
Unsubscribe
#
public System.Void Unsubscribe<T>(System.String key, System.Action<T> func)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
178A7C2E1DF4A2AD6AE27538B5A5B69240F178C03668458B0AA874FC32534B7B - Body hash
E8070103A151F8A5905D59857D5ADEDA5B5F4F4B965791E8A0E9031E88C91911 - IL size74
Referenced calls
System.Collections.Generic.Dictionary<System.Object, EventBus.EventBusListener>::Remove(!0, !1&)System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)System.Collections.Generic.List<EventBus.EventBusListener>::Remove(!0)System.Collections.Generic.List<EventBus.EventBusListener>::get_Count()System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Remove(!0)