Skip to main content

FB2RumorManager

Overview

  • Manages rumors.

Metadata

FieldValue
Kindsystem
EnvironmentB2 - Simulation
Categorysystems
ExtendsFB2ManagerBase
Requirerequire('Systems.B2RumorManager')

Properties (10)

NameTypeDescription
CheckRumorLifeTimeTaskIdFB1TimeTaskId
EntityKnownTheRumorContainertable<FB1EntityId, FB1RumorIdList>
LastRumorIdFB1RumorId
RumorContainertable<FB1RumorId, FB1RumorParam>
RumorEventExpireDtIdstring
RumorEventNegativeDtIdListstring[]
RumorEventPositiveDtIdListstring[]List of TableRowNames used as special cases in RumorEvent.
RumorIdGeneratorany
bIsDebugModeboolean
bIsSystemOnboolean

Functions (21)

FunctionParametersReturnsDescription
CanRumorTransferInEntityId: FB1EntityId, InIndex: integer, InTargetEntityId: FB1EntityIdbooleanReturns whether it can Rumor Transfer.
CheckRumorLifeTime--Checks Rumor Life Time.
GetCurrentRumorCount-integerReturns Current Rumor Count.
GetRumorDtIdFromRumorIdInRumorId: FB1RumorIdstringReturns Rumor Dt Id From Rumor Id.
GetRumorListInEntityId: FB1EntityId, OutRumorList: FB1RumorId[]-Returns Rumor List.
GetRumorMongerEntityIdFromIndexInEntityId: FB1EntityId, InIndex: integerFB1EntityIdReturns Rumor Monger Entity Id From Index.
GetRumorMongerRumorListInEntityId: FB1EntityId, OutRumorList: FB1RumorId[]-Returns Rumor Monger Rumor List.
GetRumorParamInMongerId: FB1EntityId, RumorDtId: stringFB1RumorParamReturns Rumor Param.
GetRumorParamByIndexInEntityId: FB1EntityId, InIndex: integerFB1RumorParamReturns Rumor Param By Index.
HasRumorInEntityId: FB1EntityId, InRumorDtId: stringbooleanReturns whether it has Rumor.
HasRumorValidIndexInEntityId: FB1EntityId, InIndex: integerbooleanReturns whether it has Rumor Valid Index.
HasSameRumorInLHS: FB1EntityId, InRHS: FB1EntityIdbooleanReturns whether it has Same Rumor.
HasSameRumorInIndexInLHS: FB1EntityId, InIndex: integer, InRHS: FB1EntityIdbooleanReturns whether it has Same Rumor In Index.
MakeRumorInEntityId: FB1EntityId, InNewRumorDtId: stringEB1MakeRumorResultMakes Rumor.
RemoveRumorByMongerDieInMongerId: FB1EntityId-Removes Rumor By Monger Die.
RumorTransferInSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId, InRumorDtId: stringEB1RumorTransferResult
RumorTransferByIndexInSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId, InRumorIndex: integerboolean
SetSystemOnbNewIsSystemOn: boolean-Sets System On.
TryPlayRumorEventInEntityId: FB1EntityId, InRumorEventDtId: string, InCurrentValue: integer, InRumorParam: FB1RumorParamEB1RumorEventPlayResult
TryRemoveRumorByTest--Function for AutomationTest only. Please do not call it from anywhere else.
TryRumorTransferInSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId-

Override points (14)

Implement these in Lua as FB2RumorManager.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_CanRumorTransferInEntityId: FB1EntityId, InIndex: integer, InTargetEntityId: FB1EntityIdbooleanReturns whether it can Rumor Transfer.
Override_CheckRumorLifeTime--Checks Rumor Life Time.
Override_HasRumorInEntityId: FB1EntityId, InRumorDtId: stringbooleanReturns whether it has Rumor.
Override_HasRumorValidIndexInEntityId: FB1EntityId, InIndex: integerbooleanReturns whether it has Rumor Valid Index.
Override_HasSameRumorInLHS: FB1EntityId, InRHS: FB1EntityIdbooleanReturns whether it has Same Rumor.
Override_HasSameRumorInTargetEntityId: FB1EntityId, InRumorId: FB1EntityIdbooleanReturns whether it has Same Rumor.
Override_HasSameRumorInIndexInLHS: FB1EntityId, InIndex: integer, InRHS: FB1EntityIdbooleanReturns whether it has Same Rumor In Index.
Override_MakeRumorInEntityId: FB1EntityId, InNewRumorDtId: stringEB1MakeRumorResultMakes Rumor.
Override_RemoveRumorByMongerDieInMongerId: FB1EntityId-Removes Rumor By Monger Die.
Override_RumorTransferInSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId, InRumorDtId: stringEB1RumorTransferResult
Override_RumorTransferByIndexInSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId, InRumorIndex: integerboolean
Override_TryPlayRumorEventInEntityId: FB1EntityId, InRumorEventDtId: string, InCurrentValue: integer, InRumorParam: FB1RumorParamEB1RumorEventPlayResult
Override_TryRemoveRumorByTest--Function for AutomationTest only. Please do not call it from anywhere else.
Override_TryRumorTransferInSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId-