Candide.GameModels.Managers.OfferingsManager
Type JSONpublic class in Candide.GameModels.Managers
Type metadata
- Assembly
Romestead - Namespace
Candide.GameModels.Managers - Base type
System.Object - Hash
D993C1901F70FAA248F3E84A172E0363B97E313F0CECA7F81E667E49E5AD297B
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
CurrentOfferingsChanged# | private | private OfferingsManager.GameStateCurrentOfferingsChanged CurrentOfferingsChanged |
Events
| Name | Visibility | Signature |
|---|---|---|
CurrentOfferingsChanged# | public | public OfferingsManager.GameStateCurrentOfferingsChanged CurrentOfferingsChanged |
Methods
CanDoOffering
#
public System.Boolean CanDoOffering(Shared.Models.Gods.Offering offering, Candide.GameModels.Models.Items.SimpleInventory inventory)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
3CC87988D832DFA66F04E6C4BAB872396568536BD1D2CD978223487046F344D9 - Body hash
2041B131F2542AB21819EC0051CD820202B21760559B67A93D0A7CB18460AC04 - IL size170
Referenced calls
System.Collections.Generic.Dictionary<System.String, Candide.GameModels.Models.Gods.ClientOffering>::ContainsKey(!0)System.String::Concat(System.String, System.String, System.String)CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)Candide.GameModels.Managers.SimpleInventoryManager::CanRemoveItems(Candide.GameModels.Models.Items.SimpleInventory, Shared.Models.Items.ItemAmount[])System.ArgumentOutOfRangeException::.ctor(System.String)System.ArgumentOutOfRangeException::.ctor()
String literals
Offering with IDdoes not exist in the GameStateFailed doing offering with ID. Insufficient items.Fix this. Check connected sources etc.
SyncFullGameState
#
public System.Void SyncFullGameState(CandideServer.ServerServices.GetFullGameStateResponse model)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
696B0389FBBC1569DB567AB9F4CF090DA832AB93D18082F87A28C01A7BCEF9F7 - Body hash
F1A265A705AA08D1F86E7C5DCB1044913A94D463013D40E4E50A56822665170C - IL size101
Referenced calls
System.Collections.Generic.Dictionary<System.String, Candide.GameModels.Models.Gods.ClientOffering>::Clear()System.Collections.Generic.Dictionary<System.String, System.Int32>::GetEnumerator()Dictionary.Enumerator<System.String, System.Int32>::get_Current()System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Key()Shared.Data.OfferingDataBase::GetOfferingOrMissing(System.String)System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Value()Candide.GameModels.Models.Gods.ClientOffering::.ctor(System.Int32, Shared.Models.Gods.Offering)System.Collections.Generic.Dictionary<System.String, Candide.GameModels.Models.Gods.ClientOffering>::set_Item(!0, !1)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()
SynchCurrentOfferings
#
public System.Void SynchCurrentOfferings(System.Collections.Generic.Dictionary<System.String, System.Int32> offerings)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
87E891B2C6A1965D904489EFCED4FBF1EB2199A947C13043CFB2DE274DB7B516 - Body hash
12FD03BCA2AEEA9BA9C54ABAF4B26C421EF095EF2AE9969437BAF5FA24AB215B - IL size408
Referenced calls
Candide.GameModels.Managers.CurrentOfferingsChangedArgs::.ctor()System.Collections.Generic.Dictionary<System.String, System.Int32>::GetEnumerator()Dictionary.Enumerator<System.String, System.Int32>::get_Current()System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Key()System.Collections.Generic.Dictionary<System.String, Candide.GameModels.Models.Gods.ClientOffering>::TryGetValue(!0, !1&)System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Value()System.Collections.Generic.Dictionary<System.String, System.Int32>::ContainsKey(!0)System.String::Concat(System.String, System.String)Candide.GameModels.Managers.OfferingsManagerException::.ctor(System.String)System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)Shared.Data.OfferingDataBase::GetOfferingOrMissing(System.String)Candide.GameModels.Models.Gods.ClientOffering::.ctor(System.Int32, Shared.Models.Gods.Offering)System.Collections.Generic.Dictionary<System.String, Candide.GameModels.Models.Gods.ClientOffering>::set_Item(!0, !1)System.Collections.Generic.List<System.String>::Add(!0)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.Dictionary<System.String, Candide.GameModels.Models.Gods.ClientOffering>::GetEnumerator()Dictionary.Enumerator<System.String, Candide.GameModels.Models.Gods.ClientOffering>::get_Current()System.Collections.Generic.KeyValuePair<System.String, Candide.GameModels.Models.Gods.ClientOffering>::get_Key()Dictionary.Enumerator<System.String, Candide.GameModels.Models.Gods.ClientOffering>::MoveNext()System.Collections.Generic.List<System.String>::GetEnumerator()List.Enumerator<System.String>::get_Current()System.Collections.Generic.Dictionary<System.String, Candide.GameModels.Models.Gods.ClientOffering>::Remove(!0)List.Enumerator<System.String>::MoveNext()OfferingsManager.GameStateCurrentOfferingsChanged::Invoke(Candide.GameModels.Managers.CurrentOfferingsChangedArgs)
String literals
Received multiple offerings with the same key:
TryDoOffering
#
public System.Boolean TryDoOffering(System.Guid altarBuildingId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
7022596D31939D0190E526E60DDB5EE1B8FF64E2B4C446FCC8E9EB414CA0C725 - Body hash
778A579ADE978A6B26E795FD6E505765D64E95926FCCC5AA3B2D2A02911F225B - IL size19
Referenced calls
CandideServer.MessageModels.Gods.HandInOfferingMessage::.ctor()Candide.GameModels.Services.OfferingsService::Send_HandInOffering(CandideServer.MessageModels.Gods.HandInOfferingMessage)
TryDoSacrifice
#
public System.Boolean TryDoSacrifice(CandideServer.MessageModels.Towns.CitizenTownOverviewData citizen, System.Nullable<System.Guid> townId)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
BD6885D3CC83A0467FC7A7551ACDAAB787BC3BA85F298AE625061D3AA4D60704 - Body hash
DDD576A727063E6961B309D58C3FB0EAFB6D2C83B1B69BEBEC8B1B6757714B09 - IL size143
Referenced calls
System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.Guid::op_Inequality(System.Guid, System.Guid)CandideServer.MessageModels.Gods.SacrificeCitizenMessage::.ctor()Candide.GameModels.Services.OfferingsService::Send_SacrificeCitizen(CandideServer.MessageModels.Gods.SacrificeCitizenMessage)Candide.Sound.SoundPlayer::PlayEventOneShot(System.String, System.Single, System.Single)
String literals
event:/interface/offering/ui_worship_sacrifice