FB2RumorManager
Overview
- Manages rumors.
Metadata
| Field | Value |
|---|---|
| Kind | system |
| Environment | B2 - Simulation |
| Category | systems |
| Extends | FB2ManagerBase |
| Require | require('Systems.B2RumorManager') |
Properties (10)
| Name | Type | Description |
|---|---|---|
CheckRumorLifeTimeTaskId | FB1TimeTaskId | |
EntityKnownTheRumorContainer | table<FB1EntityId, FB1RumorIdList> | |
LastRumorId | FB1RumorId | |
RumorContainer | table<FB1RumorId, FB1RumorParam> | |
RumorEventExpireDtId | string | |
RumorEventNegativeDtIdList | string[] | |
RumorEventPositiveDtIdList | string[] | List of TableRowNames used as special cases in RumorEvent. |
RumorIdGenerator | any | |
bIsDebugMode | boolean | |
bIsSystemOn | boolean |
Functions (21)
| Function | Parameters | Returns | Description |
|---|---|---|---|
CanRumorTransfer | InEntityId: FB1EntityId, InIndex: integer, InTargetEntityId: FB1EntityId | boolean | Returns whether it can Rumor Transfer. |
CheckRumorLifeTime | - | - | Checks Rumor Life Time. |
GetCurrentRumorCount | - | integer | Returns Current Rumor Count. |
GetRumorDtIdFromRumorId | InRumorId: FB1RumorId | string | Returns Rumor Dt Id From Rumor Id. |
GetRumorList | InEntityId: FB1EntityId, OutRumorList: FB1RumorId[] | - | Returns Rumor List. |
GetRumorMongerEntityIdFromIndex | InEntityId: FB1EntityId, InIndex: integer | FB1EntityId | Returns Rumor Monger Entity Id From Index. |
GetRumorMongerRumorList | InEntityId: FB1EntityId, OutRumorList: FB1RumorId[] | - | Returns Rumor Monger Rumor List. |
GetRumorParam | InMongerId: FB1EntityId, RumorDtId: string | FB1RumorParam | Returns Rumor Param. |
GetRumorParamByIndex | InEntityId: FB1EntityId, InIndex: integer | FB1RumorParam | Returns Rumor Param By Index. |
HasRumor | InEntityId: FB1EntityId, InRumorDtId: string | boolean | Returns whether it has Rumor. |
HasRumorValidIndex | InEntityId: FB1EntityId, InIndex: integer | boolean | Returns whether it has Rumor Valid Index. |
HasSameRumor | InLHS: FB1EntityId, InRHS: FB1EntityId | boolean | Returns whether it has Same Rumor. |
HasSameRumorInIndex | InLHS: FB1EntityId, InIndex: integer, InRHS: FB1EntityId | boolean | Returns whether it has Same Rumor In Index. |
MakeRumor | InEntityId: FB1EntityId, InNewRumorDtId: string | EB1MakeRumorResult | Makes Rumor. |
RemoveRumorByMongerDie | InMongerId: FB1EntityId | - | Removes Rumor By Monger Die. |
RumorTransfer | InSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId, InRumorDtId: string | EB1RumorTransferResult | |
RumorTransferByIndex | InSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId, InRumorIndex: integer | boolean | |
SetSystemOn | bNewIsSystemOn: boolean | - | Sets System On. |
TryPlayRumorEvent | InEntityId: FB1EntityId, InRumorEventDtId: string, InCurrentValue: integer, InRumorParam: FB1RumorParam | EB1RumorEventPlayResult | |
TryRemoveRumorByTest | - | - | Function for AutomationTest only. Please do not call it from anywhere else. |
TryRumorTransfer | InSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId | - |
Override points (14)
Implement these in Lua as FB2RumorManager.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
Override_CanRumorTransfer | InEntityId: FB1EntityId, InIndex: integer, InTargetEntityId: FB1EntityId | boolean | Returns whether it can Rumor Transfer. |
Override_CheckRumorLifeTime | - | - | Checks Rumor Life Time. |
Override_HasRumor | InEntityId: FB1EntityId, InRumorDtId: string | boolean | Returns whether it has Rumor. |
Override_HasRumorValidIndex | InEntityId: FB1EntityId, InIndex: integer | boolean | Returns whether it has Rumor Valid Index. |
Override_HasSameRumor | InLHS: FB1EntityId, InRHS: FB1EntityId | boolean | Returns whether it has Same Rumor. |
Override_HasSameRumor | InTargetEntityId: FB1EntityId, InRumorId: FB1EntityId | boolean | Returns whether it has Same Rumor. |
Override_HasSameRumorInIndex | InLHS: FB1EntityId, InIndex: integer, InRHS: FB1EntityId | boolean | Returns whether it has Same Rumor In Index. |
Override_MakeRumor | InEntityId: FB1EntityId, InNewRumorDtId: string | EB1MakeRumorResult | Makes Rumor. |
Override_RemoveRumorByMongerDie | InMongerId: FB1EntityId | - | Removes Rumor By Monger Die. |
Override_RumorTransfer | InSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId, InRumorDtId: string | EB1RumorTransferResult | |
Override_RumorTransferByIndex | InSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId, InRumorIndex: integer | boolean | |
Override_TryPlayRumorEvent | InEntityId: FB1EntityId, InRumorEventDtId: string, InCurrentValue: integer, InRumorParam: FB1RumorParam | EB1RumorEventPlayResult | |
Override_TryRemoveRumorByTest | - | - | Function for AutomationTest only. Please do not call it from anywhere else. |
Override_TryRumorTransfer | InSelfEntityId: FB1EntityId, InTargetEntityId: FB1EntityId | - |