CandideServer.ServerManagers.RaidsServerManager
Type JSONpublic class in CandideServer.ServerManagers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.ServerManagers - Base type
System.Object - Hash
62BF7F06BFBA75F02964C3F729AA372E75F99EA87BA0EE8BD1016EE8C5025B95
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
ReUseCitizenUpdates# | private | private System.Collections.Generic.List<CandideServer.MessageModels.Citizens.UpdateCitizenMessage> ReUseCitizenUpdates |
ReUseRaidsList# | private | private System.Collections.Generic.List<System.ValueTuple<System.Single, Shared.Data.DataModels.RaidData>> ReUseRaidsList |
ReUseTownsList# | private | private System.Collections.Generic.List<System.ValueTuple<System.Single, CandideServer.Models.Town.ServerTownModel>> ReUseTownsList |
Methods
CreateRaid
#
public Shared.Models.Raids.RaidInstanceModel CreateRaid(System.String raidDataId, CandideServer.Models.Town.ServerTownModel targetTown, System.Nullable<Microsoft.Xna.Framework.Vector2> position, System.Single approachTimeScale, System.Boolean startedByWarDeclaration)
Method metadata
- Visibilitypublic
- Return type
Shared.Models.Raids.RaidInstanceModel - StaticTrue
- VirtualFalse
- Hash
BDF6C540AD82B5F55C77D69C2F917CF55690C03D492CC51F9C7A0FFFF9102378 - Body hash
5A448E5FE09B89D60FCD14C26CC5CE30F18F4EDA8C1BD73C058B63FB496ED6FD - IL size230
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Raids.RaidInstanceModel>::get_Values()Dictionary.ValueCollection<System.Guid, Shared.Models.Raids.RaidInstanceModel>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.Guid, Shared.Models.Raids.RaidInstanceModel>::get_Current()System.Guid::op_Equality(System.Guid, System.Guid)CandideServer.ServerManagers.RaidsServerManager::RemoveRaid(Shared.Models.Raids.RaidInstanceModel)Dictionary.ValueCollection.Enumerator<System.Guid, Shared.Models.Raids.RaidInstanceModel>::MoveNext()System.IDisposable::Dispose()System.Guid::NewGuid()System.Nullable<Microsoft.Xna.Framework.Vector2>::get_HasValue()CandideCreator.Shared.Helpers.RandomHelper::NextPointInHollowCircle(System.Random, System.Single)Microsoft.Xna.Framework.Rectangle::get_Center()Microsoft.Xna.Framework.Point::ToVector2()System.Array::GetLength(System.Int32)Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Nullable<Microsoft.Xna.Framework.Vector2>::.ctor(!0)System.Nullable<Microsoft.Xna.Framework.Vector2>::get_Value()CandideServer.ServerControllers.RaidsServerController::CreateRaid(System.Guid, System.String, Microsoft.Xna.Framework.Vector2, CandideServer.Models.Town.ServerTownModel, System.Boolean)CandideServer.ServerServices.RaidsServerService::Send_NewRaid(Shared.Models.Raids.RaidInstanceModel)
CreateRandomRaid
#
public System.Void CreateRandomRaid()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
370E667184A09920D81F616AE3A4BFC6DC21EAE918E5171F6DBB9CDF46CDF699 - Body hash
3DC9259EB24F5553C2B9CECDBCB950588AB22F99D0F590FBED4CC66594A9EF29 - IL size49
Referenced calls
CandideServer.ServerManagers.RaidsServerManager::GetRandomRaid()CandideServer.ServerManagers.RaidsServerManager::GetWeightedTown()CandideServer.ServerManagers.RaidsServerManager::CreateRaid(System.String, CandideServer.Models.Town.ServerTownModel, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Single, System.Boolean)
GetRandomRaid
#
public Shared.Data.DataModels.RaidData GetRandomRaid()
Method metadata
- Visibilitypublic
- Return type
Shared.Data.DataModels.RaidData - StaticTrue
- VirtualFalse
- Hash
89271BA055C3E6281292789B7C5E364A587087E386DDCFCE5D488F2D1167B7AE - Body hash
8293B5AA5E8E31F93D504435C0ACDEB2E908F38FF7E6F83FB1E72AC679C3F7D3 - IL size248
Referenced calls
Shared.Helpers.WorldTierHelper::GetProgressionTier(System.Collections.Generic.HashSet<System.String>)System.Collections.Generic.List<System.ValueTuple<System.Single, Shared.Data.DataModels.RaidData>>::Clear()System.Collections.Generic.Dictionary<System.String, Shared.Data.DataModels.RaidData>::get_Values()Dictionary.ValueCollection<System.String, Shared.Data.DataModels.RaidData>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.String, Shared.Data.DataModels.RaidData>::get_Current()System.ValueTuple<System.Single, Shared.Data.DataModels.RaidData>::.ctor(!0, !1)System.Collections.Generic.List<System.ValueTuple<System.Single, Shared.Data.DataModels.RaidData>>::Add(!0)Dictionary.ValueCollection.Enumerator<System.String, Shared.Data.DataModels.RaidData>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.List<System.ValueTuple<System.Single, Shared.Data.DataModels.RaidData>>::get_Count()System.Random::NextSingle()System.Collections.Generic.List<System.ValueTuple<System.Single, Shared.Data.DataModels.RaidData>>::GetEnumerator()List.Enumerator<System.ValueTuple<System.Single, Shared.Data.DataModels.RaidData>>::get_Current()List.Enumerator<System.ValueTuple<System.Single, Shared.Data.DataModels.RaidData>>::MoveNext()
GetWeightedTown
#
public CandideServer.Models.Town.ServerTownModel GetWeightedTown()
Method metadata
- Visibilitypublic
- Return type
CandideServer.Models.Town.ServerTownModel - StaticTrue
- VirtualFalse
- Hash
E692F0CA9C7F7B577D3B35ACD1E1994C11CCE19308E36F7E9B3ADA29ACB48DCE - Body hash
B1206F18F78CCE3D3626FB9CBB20A5A947413AD9AEEC4DE27C424723BFA21A3D - IL size279
Referenced calls
System.Collections.Generic.List<System.ValueTuple<System.Single, CandideServer.Models.Town.ServerTownModel>>::Clear()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.ServerTownModel>::get_Values()Dictionary.ValueCollection<System.Guid, CandideServer.Models.Town.ServerTownModel>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.Town.ServerTownModel>::get_Current()System.Collections.Generic.HashSet<System.Guid>::get_Count()System.MathF::Log2(System.Single)System.ValueTuple<System.Single, CandideServer.Models.Town.ServerTownModel>::.ctor(!0, !1)System.Collections.Generic.List<System.ValueTuple<System.Single, CandideServer.Models.Town.ServerTownModel>>::Add(!0)Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.Town.ServerTownModel>::MoveNext()System.IDisposable::Dispose()System.Random::NextSingle()System.Collections.Generic.List<System.ValueTuple<System.Single, CandideServer.Models.Town.ServerTownModel>>::GetEnumerator()List.Enumerator<System.ValueTuple<System.Single, CandideServer.Models.Town.ServerTownModel>>::get_Current()List.Enumerator<System.ValueTuple<System.Single, CandideServer.Models.Town.ServerTownModel>>::MoveNext()
OnNewDay
#
public System.Void OnNewDay()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
D79CCF0C8BC2BB4C3F20BCC1F2FA4F0107787B3DD70EE9E7F3004790B3EC62E6 - Body hash
92104388E6AC19136AE03CA77194AB89C3E189E4372EA5B877B9870CE1B94455 - IL size68
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Town.ServerTownModel>::get_Count()System.Collections.Generic.Dictionary<System.Int32, CandideServer.ServerServices.ServerJoinedPlayerModel>::get_Count()Shared.Models.WorldStats::Get(System.String)System.Random::NextSingle()CandideServer.ServerManagers.RaidsServerManager::CreateRandomRaid()
String literals
WorldStats_RaidsSpawnRateModifier
OnRaidArrived
#
public System.Void OnRaidArrived(Shared.Models.Raids.RaidInstanceModel raid, CandideServer.Models.Town.ServerTownModel town)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
0BC0D1A78C890502CEEB9F9F83298473CD0962404C278EA8242BE802314F61DB - Body hash
45D38C4A418E42D166B22D30B179E5549AA161D4E298E5815390B214392703ED - IL size15
Referenced calls
OnRaidBeaten
#
public System.Void OnRaidBeaten(Shared.Models.Raids.RaidInstanceModel raid, CandideServer.Models.Town.ServerTownModel town)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
58B9C45DD7926687D3B381F72FA45B581AC9B85086D0186B0C959F3E14B3B56E - Body hash
2DBE842DE0F382DD26439C5D677D17960B96ADB338E0AA913BE09DFF1C86211A - IL size795
Referenced calls
Shared.Data.RaidDataBase::GetRaidOrNull(System.String)CandideServer.ServerControllers.RaidsServerController::RemoveRaid(System.Guid)CandideServer.ServerServices.RaidsServerService::Send_RemoveRaid(System.Guid, System.Byte)Shared.Analytics.AnalyticsHandler::ToIdString(System.String)System.String::Concat(System.String, System.String)CandideServer.ServerGameState::GetWorldPlayTimeHours()Shared.Analytics.AnalyticsHandler::Log(System.String, System.Double, AnalyticsHandler.LogType, System.Single)System.ValueTuple<Shared.Models.Raids.RaidInstanceModel, CandideServer.Models.Town.ServerTownModel>::.ctor(!0, !1)CandideServer.EventBus.EventBusManager::SendEvent(System.String, System.Object, System.Boolean)CandideServer.Models.Quests.EventModels.OnRaidVictoryEvent::Send(Shared.Models.Raids.RaidInstanceModel)Shared.Models.Town.TownReportSummaryModel::.ctor()CandideServer.ServerSystems.TimeServerSystem::get_Day()System.Collections.Generic.List<Shared.Models.Town.TownReportCitizenSummaryModel>::.ctor()System.Collections.Generic.HashSet<System.Guid>::get_Count()System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()CandideServer.ServerGameState::TryGetCitizen(System.Guid, CandideServer.Models.Citizen.CitizenModel&)CandideServer.Models.Citizen.CitizenModel::get_IsDead()Shared.Models.Town.TownReportCitizenSummaryModel::.ctor()System.Collections.Generic.List<Shared.Models.Town.TownReportCitizenSummaryModel>::Add(!0)Shared.Models.Stats.CitizenStats::Get(System.String)System.Collections.Generic.List<System.String>::.ctor()HashSet.Enumerator<System.Guid>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.List<CandideServer.MessageModels.Citizens.UpdateCitizenMessage>::Clear()System.Collections.Generic.List<Shared.Models.Town.TownReportCitizenSummaryModel>::GetEnumerator()List.Enumerator<Shared.Models.Town.TownReportCitizenSummaryModel>::get_Current()CandideServer.ServerManagers.ServerCitizenException::.ctor(System.String)CandideServer.ServerManagers.CitizenServerManager::CitizenDied(CandideServer.Models.Citizen.CitizenModel, Shared.Models.Citizens.CitizenDeathType)CandideServer.ServerControllers.CitizensSController::AddLoyalty(CandideServer.Models.Citizen.CitizenModel, System.Single, System.Boolean)System.Collections.Generic.List<System.String>::GetEnumerator()List.Enumerator<System.String>::get_Current()
Called by
String literals
raid:beaten:raid-beatCitizen_LoyaltyGainCitizen was removed between setting up the summary report and actually applying its changes after a successful raid
OnRaidEntityRemoved
#
public System.Void OnRaidEntityRemoved(System.Guid raidId, CandideServer.Entities.ServerEntityModel entity, Shared.Entity.EntityRemoveInfo removeInfo)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
28950143488651FC7443C083271ABA147C0EBB65F4B2B5A9089A2E9E2C63885D - Body hash
6CCB16B80E17899637881306C6956FEEC4003AEEB5924EAAA4AD748FCD3ADAF5 - IL size117
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Raids.RaidInstanceModel>::TryGetValue(!0, !1&)Shared.Data.RaidDataBase::GetRaidOrNull(System.String)System.String::IsNullOrWhiteSpace(System.String)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random)Microsoft.Xna.Framework.Vector3::get_Zero()CandideServer.ServerManagers.LootServerManager::DropLootAtPosition(System.String, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>)CandideServer.ServerControllers.RaidsServerController::UpdateProgress(Shared.Models.Raids.RaidInstanceModel, CandideServer.Entities.ServerEntityModel)
OnRaidFailed
#
public System.Void OnRaidFailed(Shared.Models.Raids.RaidInstanceModel raid, CandideServer.Models.Town.ServerTownModel town)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
7662BF2B80D03347839E0F19E941ECD73B3F02D517B865AE2B65F270639ECF33 - Body hash
86218D5A915737523212E232755B07C22F822FED4571A59694DD608670ACB76D - IL size1882
Referenced calls
Shared.Data.RaidDataBase::GetRaidOrNull(System.String)CandideServer.ServerControllers.RaidsServerController::RemoveRaid(System.Guid)CandideServer.ServerServices.RaidsServerService::Send_RemoveRaid(System.Guid, System.Byte)Shared.Analytics.AnalyticsHandler::ToIdString(System.String)System.String::Concat(System.String, System.String)Shared.Analytics.AnalyticsHandler::Log(System.String, System.Double, AnalyticsHandler.LogType, System.Single)CandideServer.ServerGameState::GetWorldPlayTimeHours()Shared.Models.Town.TownReportSummaryModel::.ctor()CandideServer.ServerSystems.TimeServerSystem::get_Day()System.Collections.Generic.List<Shared.Models.Town.TownReportCitizenSummaryModel>::.ctor()System.Collections.Generic.HashSet<System.Guid>::get_Count()System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable<!!0>)CandideCreator.Shared.Helpers.RandomHelper::Shuffle(!!0[], System.Random)System.MathF::Ceiling(System.Single)System.Random::Next(System.Int32, System.Int32)CandideServer.ServerGameState::TryGetCitizen(System.Guid, CandideServer.Models.Citizen.CitizenModel&)Shared.Models.Town.TownReportCitizenSummaryModel::.ctor()System.Collections.Generic.List<Shared.Models.Town.TownReportCitizenSummaryModel>::Add(!0)System.Random::NextSingle()System.Collections.Generic.List<System.String>::.ctor()System.Collections.Generic.List<System.String>::.ctor(System.Int32)System.Runtime.InteropServices.CollectionsMarshal::SetCount(System.Collections.Generic.List<!!0>, System.Int32)System.Runtime.InteropServices.CollectionsMarshal::AsSpan(System.Collections.Generic.List<!!0>)System.Span<System.String>::get_Item(System.Int32)System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()CandideServer.ServerGameState::TryGetBuilding(System.Guid, CandideServer.SimulationModels.BuildingSimulationModel&)System.String::op_Inequality(System.String, System.String)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()CandideServer.ServerGameState::TryGetInternalResourceStorage(System.Guid, CandideServer.Models.InternalResourceStorageModel&)System.Collections.Generic.Dictionary<System.String, System.Int32>::get_Count()
Called by
String literals
raid:failed:raid:fail_time:material_storageCitizen was removed between setting up the summary report and actually applying its changes after a failed raid
OnRaidStartedApproach
#
public System.Void OnRaidStartedApproach(Shared.Models.Raids.RaidInstanceModel raid, CandideServer.Models.Town.ServerTownModel targetTown, System.Single approachTimeLeftScale)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
5C33632F7C85E61969222677AEC3991830D086A68BCECB4C64EF140818D2F0AF - Body hash
A225772F1E60331421B15708A1E267495CDD54864AD845D267DC83B1DE834ADA - IL size29
Referenced calls
RemoveRaid
#
public System.Void RemoveRaid(Shared.Models.Raids.RaidInstanceModel raid)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
FD59A1EF052096DBD505B2AF932B2F5CEC72A61A72F1E96774F5B52D10701F6C - Body hash
67837359AC7B47D8BD006922F7ADE68146628843376A8CDF6271CDAA9B58D1A5 - IL size24
Referenced calls
UseWarDeclaration
#
public System.Void UseWarDeclaration(System.Guid itemInstanceId, CandideServer.ServerServices.ServerJoinedPlayerModel usingPlayer)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
F0B5238175DA91EB1076ED1F9AAED2387C9E16E6C982FABB482F39A67FA63AE3 - Body hash
5618B37C8DE6BADC8712189C3B548DC247400E2A30C57782A20EC246E99BED74 - IL size395
Referenced calls
CandideServer.ServerGameState::TryGetItemInstance(System.Guid, Shared.Models.Items.ItemInstanceModel&)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)Shared.Models.Items.ItemInstanceModel::get_Data()System.String::Concat(System.String, System.String)System.Collections.Generic.HashSet<System.String>::Contains(!0)CandideServer.ServerManagers.ItemInstanceServerManager::UseExpendItem(Shared.Models.Items.ItemInstanceModel, System.Int32)CandideCreator.Shared.Helpers.VectorExtension::ToVector2(Microsoft.Xna.Framework.Vector3)CandideServer.ServerManagers.TownsServerManager::GetClosestTown(Microsoft.Xna.Framework.Vector2)CandideServer.ServerManagers.RaidsServerManager::GetWeightedTown()System.String::op_Equality(System.String, System.String)System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Dungeons.DungeonLocationModel>::get_Values()Dictionary.ValueCollection<System.Guid, CandideServer.Models.Dungeons.DungeonLocationModel>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.Dungeons.DungeonLocationModel>::get_Current()System.String::op_Inequality(System.String, System.String)System.Nullable<Microsoft.Xna.Framework.Vector2>::.ctor(!0)Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.Dungeons.DungeonLocationModel>::MoveNext()System.IDisposable::Dispose()CandideServer.ServerManagers.RaidsServerManager::CreateRaid(System.String, CandideServer.Models.Town.ServerTownModel, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Single, System.Boolean)CandideServer.ServerManagers.RaidsServerManager::OnRaidStartedApproach(Shared.Models.Raids.RaidInstanceModel, CandideServer.Models.Town.ServerTownModel, System.Single)
String literals
UseWarDeclaration failed because we could not find item instance with ID:UseWarDeclaration failed because we can't find StartRaidSpellArgs on item with ID:UseWarDeclaration failed because we can't use item with ID:raid:pyzifaxraid:satyrsatyr_pre_boss_arena