Romestead Assembly Reference

Candide.GameModels.Controllers.JobsController

Type JSON

public class in Candide.GameModels.Controllers

Methods21
Properties0
Fields5
Events4
Type metadata
  • AssemblyRomestead
  • NamespaceCandide.GameModels.Controllers
  • Base typeSystem.Object
  • Hash649CBF021FCCEC7D5C3F4068305E917348D809E58B063DE9CEF66570D7D12583

Relationships

Base type

System.Object

Fields

NameVisibilitySignature
IgnoreEventspublicpublic System.Boolean IgnoreEvents
JobFinishedOrderprivateprivate JobsController.GameStateActiveJobFinishedOrder JobFinishedOrder
JobRecipesChangedprivateprivate JobsController.GameStateActiveJobRecipesChanged JobRecipesChanged
JobsChangedprivateprivate JobsController.GameStateActiveJobsChanged JobsChanged
WorkOrdersChangedprivateprivate JobsController.GameStateActiveJobsWorkOrdersChanged WorkOrdersChanged

Events

NameVisibilitySignature
JobFinishedOrderpublicpublic JobsController.GameStateActiveJobFinishedOrder JobFinishedOrder
JobRecipesChangedpublicpublic JobsController.GameStateActiveJobRecipesChanged JobRecipesChanged
JobsChangedpublicpublic JobsController.GameStateActiveJobsChanged JobsChanged
WorkOrdersChangedpublicpublic JobsController.GameStateActiveJobsWorkOrdersChanged WorkOrdersChanged

Methods

CanAffordWorkOrder

public System.Boolean CanAffordWorkOrder(Shared.Data.DataModels.WorkRecipeModel workRecipe, Candide.GameModels.Models.Items.SimpleInventory characterInventory, Candide.CandideUI.JobUiNew.State.JobInventoryStorageState inventoryStorageState, Candide.CandideUI.JobUiNew.State.JobOrdersState jobOrdersState, Candide.CandideUI.JobUiNew.State.JobResourceStorageState resourceStorageState)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashFE9FBC94CA13DECF60D96032C30FEC473703CEC3637C0C1B00653314E764F37C
  • Body hashFD5AC64C42F183A80C81BD2DB771B170F169BCBF5CAF1B5AB49FF3C2F66A9FF3
  • IL size437
Referenced calls
Called by

CheckCanPerformFurnitureCraft

public System.Boolean CheckCanPerformFurnitureCraft(System.Guid jobId, System.String furnitureId, System.Nullable<System.Guid> playerInventoryId, System.Nullable<System.Guid> storageInventoryId, Candide.CandideUI.JobUiNew.State.JobOrdersState jobOrdersState, Candide.CandideUI.JobUiNew.State.JobResourceStorageState resourceStorageState, out Candide.GameModels.Models.Jobs.Job& job, out System.Boolean& sendDeltaResult, out Shared.Inventory.DeltaModels.DeltaComplexResult& deltaResult)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashE7C70FD9B139FBAFE3F5C5D9D7BFA53076493276DB4BB04D7AB98BE0A99162F3
  • Body hashB0D2A1C3AE6D5D86989A73FA447DD1EFC764CC2627013D5E7757891262D9998A
  • IL size1333
Referenced calls
Called by
String literals
  • Storage inventory with id
  • doesn't exist on job with ID
  • Gui_Warning_WorkQueueFull
  • Job_NoCitizenAssigned
  • Ui_Error
  • Failed to find recipe for furniture with ID:
  • Job_CitizenLevelTooLow
  • Gui_Warning_NotEnoughMaterials
  • Wtf happened here!?

InsertRecipes

private System.Void InsertRecipes(System.Collections.Generic.List<Shared.Data.DataModels.WorkRecipeModel> list, System.Collections.Generic.IReadOnlyCollection<System.String> groupIds, System.Collections.Generic.IEnumerable<System.String> unlockedIds)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash4429013337186D873E1C023AD226816BCCD11E919D6E2FA8F635E7BDC994D82D
  • Body hashD68717BED8B3F8997A95109BA45612C61C8301BD627BDFB3BDD6678A9DB25C05
  • IL size203
Referenced calls
Called by

InvokeJobFinishedOrder

public System.Void InvokeJobFinishedOrder(System.Guid jobId, System.String recipeId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashA11215515CDBA28A13614BE6892E154CD362249670A7812248F741FC1CD0266F
  • Body hash15B745241AFA368DACCF6FF41C3F3D87342EB5FFCC927518E61665E7D3E51F9C
  • IL size30
Referenced calls
Called by

InvokeJobsChanged

public System.Void InvokeJobsChanged(Candide.GameModels.Models.Jobs.Job job)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash6458231DE8553B6346BA385E032FD5A67A93ED254756E965E0D2E1B38A70C8C8
  • Body hash773CFF742EE619DBAE83A8CC94D414AE3106855B9981C3FFBE53A03E1071CCCA
  • IL size18
Referenced calls
Called by

InvokeJobsChanged

public System.Void InvokeJobsChanged(System.Guid id, Candide.GameModels.Models.Jobs.Job job)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash9238D23D66BED8B5F149C93143A51F02376D0500D0D9612E9B8E149AB8ABC990
  • Body hashA1CC7E206F121BB697E54A65E699F39BC28B47552A6E681D87AEDD59922471EC
  • IL size30
Referenced calls
Called by

InvokeRecipesChanged

private System.Void InvokeRecipesChanged(System.Collections.Generic.IReadOnlyCollection<Shared.Data.DataModels.WorkRecipeModel> jobRecipes, System.Collections.Generic.IReadOnlyCollection<System.String> shops)

Method metadata
  • Visibilityprivate
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashF3B9472D87B2171CB7A66123BE4CA8F389DC28BAEBFD3D573E811DDBDBE686B8
  • Body hashAD04F0D5013B249D691725E00524A93A2EC1C3A7F75B13480BEA18690152EE4C
  • IL size23
Referenced calls
Called by

InvokeWorkOrdersChanged

public System.Void InvokeWorkOrdersChanged(System.Guid jobId, System.Collections.Generic.List<Candide.GameModels.Models.Jobs.WorkOrder> workOrders)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash31450156C19E485D9002D18432B758A103A14E0E8177CBE4AC30462A71370C7C
  • Body hash29D5916AB95F4158F2FB473E8D637D21DFE2377F4D37BFBBC83C2F87A03D12D3
  • IL size30
Referenced calls
Called by

MakeFurnitureCraft

public System.Boolean MakeFurnitureCraft(System.Guid jobId, System.String furnitureId, System.Nullable<System.Guid> playerInventoryId, System.Nullable<System.Guid> storageInventoryId, System.Nullable<System.Guid> internalResourceStorage, Candide.CandideUI.JobUiNew.State.JobOrdersState jobOrdersState, Candide.CandideUI.JobUiNew.State.JobResourceStorageState resourceStorageState, System.Action<CandideServer.MessageModels.Jobs.GetTryCraftFurnitureResponse> onSuccess, System.Action<System.Byte> onError)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashEABD48D9D5903C3359D496E3D897A6510DF79C179BB93F12D90EB044D6B5F3D9
  • Body hash5F09B0D4EFF20DC3CF5387F5F7E48447D35FB444D91DC952EF01329332581633
  • IL size92
Referenced calls
Called by

MakeWorkOrder

public System.Boolean MakeWorkOrder(System.Guid jobId, System.String recipeId, System.Nullable<System.Guid> playerInventoryId, System.Nullable<System.Guid> storageInventoryId, System.Nullable<System.Guid> internalResourceStorage, System.Boolean repeat, Candide.CandideUI.JobUiNew.State.JobOrdersState jobOrdersState, Candide.CandideUI.JobUiNew.State.JobResourceStorageState resourceStorageState)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash091F0AF8E036B3004ABF6A85D88D0352154B9DBB5B4BA9700850BC8E3CB53E4D
  • Body hash37A71035B2EB03507A68C08F1CDC676BF2738B3AB5DDA71F4F27017DFAEC9944
  • IL size1533
Referenced calls
Called by
String literals
  • Storage inventory with id
  • doesn't exist on job with ID
  • Gui_Warning_WorkQueueFull
  • Job_NoCitizenAssigned
  • Ui_Error
  • Failed to find work recipe with ID:
  • Job_CitizenLevelTooLow
  • Gui_Warning_NotEnoughMaterials
  • Wtf happened here!?

PlayWorkOrderSound

public System.Void PlayWorkOrderSound(System.String jobBaseId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashC14C0A79CC930660DDEEEE16777F223EE4056A7CF0509E5F408A11450754EC6A
  • Body hash250524C8E9F974340BC59B34D5E2FE6A0B263C4D207AC10F3B5950AC4B548C96
  • IL size451
Referenced calls
Called by
String literals
  • event:/interface/Crafting/ui_crafting_order_start
  • job:blacksmith
  • job:lumberjack
  • job:carpenter
  • job:leatherworker
  • job:digger
  • job:potter
  • job:philosopher
  • job:miner
  • job:sculptor
  • event:/interface/Crafting/ui_crafting_blacksmith
  • event:/interface/Crafting/ui_crafting_sawmill
  • event:/interface/Crafting/ui_crafting_leatherworker
  • event:/interface/Crafting/ui_crafting_claypit
  • event:/interface/Crafting/ui_crafting_university
  • event:/interface/Crafting/ui_crafting_pottery

RequestCancelWorkOrder

public System.Boolean RequestCancelWorkOrder(System.Guid jobId, System.Guid workOrderId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash0BA5599E93BA5C6C0E76EBDE932D0F4C54249532887B435E0B044BA90A709AB4
  • Body hash0D62F7C194303960D470C43126DF72422FA004772502E3EBCF9908CD947F6290
  • IL size48
Referenced calls
Called by

SetUserSettings

public System.Void SetUserSettings(System.Guid jobId, CandideServer.Models.Job.JobUserSettings settings)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashDE5E4F41D7CDDF786A425A2596B4B1F14A4C192D562D06BF276CEFF74DD264F8
  • Body hashC3C4D1B6090BB6273536F6402AA2D16AC20DDF426E7F02AEE95536F6578CE491
  • IL size30
Referenced calls
Called by

SyncCancelWorkOrder

public System.Void SyncCancelWorkOrder(CandideServer.MessageModels.Jobs.CancelWorkOrderMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash41C7100DE482AB3227C7A6A7C29A751DF9F7C9A704DC36E96027F10ED0E9635A
  • Body hash84252C60E6325880A769C5369EF30730B6C5F5A40E5785D0FD987DA02F3F5186
  • IL size158
Referenced calls
  • JobsController.<>c__DisplayClass35_0::.ctor()
  • Candide.GameModels.GameState::TryGetActiveJob(System.Guid, Candide.GameModels.Models.Jobs.Job&)
  • JobsController.<>c__DisplayClass35_0::<SyncCancelWorkOrder>b__0(Candide.GameModels.Models.Jobs.WorkOrder)
  • System.Predicate<Candide.GameModels.Models.Jobs.WorkOrder>::.ctor(System.Object, System.IntPtr)
  • System.Collections.Generic.List<Candide.GameModels.Models.Jobs.WorkOrder>::Find(System.Predicate<!0>)
  • Candide.GameModels.Models.Jobs.Job::get_CurrentWorkOrder()
  • JobsController.<>c__DisplayClass35_0::<SyncCancelWorkOrder>b__1(CandideServer.Models.WorkOrders.WorkOrderModel)
  • System.Predicate<CandideServer.Models.WorkOrders.WorkOrderModel>::.ctor(System.Object, System.IntPtr)
  • System.Collections.Generic.List<CandideServer.Models.WorkOrders.WorkOrderModel>::RemoveAll(System.Predicate<!0>)
  • System.Collections.Generic.List<Candide.GameModels.Models.Jobs.WorkOrder>::Remove(!0)
  • Candide.GameModels.Controllers.JobsController::InvokeJobsChanged(Candide.GameModels.Models.Jobs.Job)
Called by

SyncCreateWorkOrder

public System.Void SyncCreateWorkOrder(CandideServer.MessageModels.Jobs.CreateWorkOrderMessage createWorkOrderMessage)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • HashD330404267742489C1F629716762ECF3713B55C2502FCC76C520BB374FB88C9D
  • Body hash92539E4B89A6F19C352A0769869E310A3D227A37ADF7172C709556B986567281
  • IL size246
Referenced calls
Called by

SyncFullGameState

public System.Void SyncFullGameState(CandideServer.ServerServices.GetFullGameStateResponse model)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash956100C41FB25FAA05A6758D87CA5FF9DEE50C3764CA64DAC1CEE1DE6EF336A5
  • Body hashBC8F365E5C03744DABE2966EF3E3A14D890B077AABA75313F16BBE8CC9F9B009
  • IL size80
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Jobs.Job>::GetEnumerator()
  • Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.Jobs.Job>::get_Current()
  • System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.Jobs.Job>::get_Value()
  • Candide.GameModels.Controllers.JobsController::InvokeJobsChanged(System.Guid, Candide.GameModels.Models.Jobs.Job)
  • Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.Jobs.Job>::MoveNext()
  • System.IDisposable::Dispose()
  • System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Jobs.Job>::Clear()
Called by

SyncJobFinishedWOrkOrder

public System.Void SyncJobFinishedWOrkOrder(CandideServer.MessageModels.Jobs.WorkOrderFinishedMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash44CA5FB46D66E35A21FF9748857E1B87F4A43C750B43F4FB5219AB18186AD8EF
  • Body hashF5F8484CA3590553E2DA0BDCB6C36BFC79AB10E712999CC48D2B562712A06E0A
  • IL size107
Referenced calls
Called by

SyncRegisterActiveJob

public Candide.GameModels.Models.Jobs.Job SyncRegisterActiveJob(CandideServer.MessageModels.Jobs.GetJobResponse msg)

Method metadata
  • Visibilitypublic
  • Return typeCandide.GameModels.Models.Jobs.Job
  • StaticTrue
  • VirtualFalse
  • Hash270AC348E01BA812A6AF4833FBCA41960AFE29F6A08A955ACFAC0C81DE1DC2A4
  • Body hash47F0B08DCE78A6B15FFAD2767BFC58A939B5B3D7EEBF83DE8E292A90170840E0
  • IL size256
Referenced calls

SyncUnregisterJob

public System.Void SyncUnregisterJob(System.Guid jobId, System.Boolean stopListeningOnCitizen)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash6F41C89EECBF22C1A13AC70FBDB9D4A75DD70023A44A2582F49D622F9B790907
  • Body hashB6DD092DBB4C428D0BF323F9B6C8C52F734AB588057853AF9A486207837326FA
  • IL size136
Referenced calls
Called by

SyncUpdateJob

public Candide.GameModels.Models.Jobs.Job SyncUpdateJob(CandideServer.MessageModels.Citizens.Jobs.UpdateJobMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeCandide.GameModels.Models.Jobs.Job
  • StaticTrue
  • VirtualFalse
  • Hash90814152B54B08C7E452B7172A8091B5C3D7B90F914EB7F6B5EFF14E990D5ADD
  • Body hash6BC3F0EBFDBED5FD04E8EED65E9607D522AA1BD3929C75EC934DA436C0391AD2
  • IL size144
Referenced calls
Called by

SyncUpdateJobRecipes

public System.Void SyncUpdateJobRecipes(CandideServer.MessageModels.Citizens.Jobs.UpdateJobRecipesMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash8356543EDC0C24A303ECA96034A1EAF5C26E3F784B205BD4B183E7AD5085FCE1
  • Body hash07DABDFDC7192A9D4A34B51606C80F665764967DDE96E1D41595A9D90716C957
  • IL size68
Referenced calls
Called by