Skip to main content

FB2Entity

Overview

  • No description available.

Metadata

FieldValue
Kindstruct
EnvironmentB2 - Simulation
Categorystructs
ExtendsFB2RawEntity
Requirerequire('Objects.B2Entity')

Properties (30)

NameTypeDescription
AccGameDeltaMinutesnumber
AccTickDeltanumber
Componentsany[]
ComponentsMaptable<string, any>All components.
CreateReasonEB2EntityCreateReason
CurrentTickCountinteger
EntityIdFB1EntityId
EntityStateinteger
EntityTagsFB2EntityTag[]
HierarchyFB2EntityHierarchy
LastPseudoSimulatedTickinteger
LocatedCityNamestring
LuaModuleStatestable<string, string>
LuaModulestable<string, string>
OccupiedEntityIdFB1EntityId
OptimizeTickCountinteger
PendingEntityStateinteger
PrevCreateReasonEB2EntityCreateReason
PrevDestroyReasonEB2EntityDestroyReasonRecords the destroy reason when the object pool is in use.
PriorityPoolFixedIndexinteger
SignificanceBucketEB2EntitySigBucket
SignificanceStateEB2EntitySigState
SimulationLevelEB1SimulationLevel
TickIntervalnumber
TickScalenumberTick scale.
TickableComponentsany[]
UpdatePoolIndexinteger
bForceSimulationLevelOfDetailTwoboolean
bForceSimulationLevelOfDetailZeroboolean
bTickEnabledboolean

Functions (89)

FunctionParametersReturnsDescription
AddEntityStateInState: EB2EntityState, InReason: EB2EntityStateChangeReasonbooleanAdds Entity State.
AddLuaModuleInName: string, InModulePath: string-Manages dynamic Lua modules; delegates to LuaHost (sim-thread guaranteed).
AddTagInTag: string, GameTimeMinute: integer-Adds Tag.
ArrangeTags_WithLock--
ArrangeTags_WithoutLockCurrentTime: FDateTime-
CheckHierarchyFast-booleanHierarchy
ClearAllChildsOnDestroy--Clears All Childs On Destroy.
ClearPendingEntityState--Clears Pending Entity State.
ClearSubscribe--Clears Subscribe.
ContainsChildEntityInEntityId: FB1EntityIdboolean
GetChildEntityCount-integerReturns Child Entity Count.
GetChildEntityIds-FB1EntityId[]Returns Child Entity Ids.
GetCityMovePolicyMapInCityMoveDataPolicyType: EB1CityMoveDataPolicyTypetable<string, EB1CityMoveDataPolicy>Returns City Move Policy Map.
GetComponentComponentType: EB2ComponentTypeFB2ComponentReturns Component.
GetComponentScript--Returns Component Script.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetDetailType-integerReturns Detail Type.
GetEffectiveEntityState-integerReturns Effective Entity State.
GetEntityCreateReason-EB2EntityCreateReasonReturns Entity Create Reason.
GetEntityId-FB1EntityIdReturns Entity Id.
GetEntityState-integerReturns Entity State.
GetFName-stringReturns FName.
GetGameTimeDeltaMinutes-numberReturns Game Time Delta Minutes.
GetHalfHeight-numberReturns Half Height.
GetLastPseudoSimulatedTick-integerReturns Last Pseudo Simulated Tick.
GetLocatedCityId-stringReturns Located City Id.
GetLuaScript--Returns Lua Script.
GetMajorType-integerReturns Major Type.
GetOccupiedEntityId-FB1EntityIdReturns Occupied Entity Id.
GetParentEntityId-FB1EntityIdReturns Parent Entity Id.
GetPriorityPoolFixedIndex-integerReturns Priority Pool Fixed Index.
GetProcessedTickCount-integerReturns Processed Tick Count.
GetRadius-numberReturns Radius.
GetSignificanceBucket-EB2EntitySigBucketReturns Significance Bucket.
GetSignificanceState-EB2EntitySigStateReturns Significance State.
GetSimulationLOD-EB1SimulationLevelReturns Simulation LOD.
GetTickScale-numberReturns the tick scale.
GetType-EB2EntityTypeReturns Type.
GetUpdatePoolIndex-integerReturns Update Pool Index.
GetVelocity-FVectorReturns Velocity.
HasAnySimulationPriorityFlag-booleanReturns whether it has Any Simulation Priority Flag.
HasEffectiveEntityStateInState: EB2EntityStatebooleanReturns whether it has Effective Entity State.
HasEntityStateInState: EB2EntityStatebooleanReturns whether it has Entity State.
HasLuaModuleInName: stringbooleanReturns whether it has Lua Module.
HasPendingEntityState-booleanReturns whether it has Pending Entity State.
HasTagInTag: stringbooleanReturns whether it has Tag.
IsAvailableTicktickCount: integerbooleanChecks whether ticking is allowed.
IsCleared-booleanReturns whether Cleared.
IsEqualEntityStateInState: EB2EntityStatebooleanReturns whether Equal Entity State.
IsForceSimulationLevelOfDetailTwo-booleanReturns whether Force Simulation Level Of Detail Two.
IsForceSimulationLevelOfDetailZero-booleanReturns whether Force Simulation Level Of Detail Zero.
IsHierarchyValid-booleanReturns whether Hierarchy Valid.
IsInvalid-booleanReturns whether Invalid.
IsNeedSpawnUpdate-booleanReturns whether Need Spawn Update.
IsRegistered-booleanReturns whether Registered.
IsSimulated-booleanReturns whether Simulated.
IsSpawned-booleanReturns whether Spawned.
IsTickEnabled-booleanReturns whether Tick Enabled.
IsTickEnabledRaw-booleanThe raw bTickEnabled value without IsTickEnabled()'s composite conditions (Simulate/DebugActive). For pre-checks by debug cheats.
OnTickRestore--Restore entry point for the B2DebugDisableTickForSLOD2(false) / SLOD2-exit hook. The default implementation is SetTickEnabled(true). Derived classes may augment it (e.g. catch-up) and need not call Super (to avoid a double SetTickEnabled(true)). No manager lock is held at call time and the tracking-map update is already done, so hook re-entry is safe. InDisabledAtGameTicks: game-time ticks when it was disabled (per FB2TimeManager::StaticGetCurrentTicks()).
RefreshB1SpawnbImmediate: boolean-
RemoveEntityStateInState: EB2EntityState, InReason: EB2EntityStateChangeReasonbooleanRemoves Entity State.
RemoveLuaModuleInName: string-Removes Lua Module.
RemoveTag_WithLockInTag: string-Removes Tag_With Lock.
RemoveTag_WithoutLockInTag: string-Removes Tag_Without Lock.
RequestAddChildEntityInEntityId: FB1EntityId, InAttachRule: EB1EntityAttachRule, InExtraRelativeTransform: FTransformbooleanRequests Add Child Entity.
RequestRemoveChildEntityInEntityId: FB1EntityIdbooleanRequests Remove Child Entity.
RequestRemoveFromHierarchy-booleanRequests Remove From Hierarchy.
SendSLODInfo--Sends SLODInfo.
SetComponentTickEnableEnabled: boolean, Component: FB2Component-Sets Component Tick Enable.
SetEntityCreateReasonInReason: EB2EntityCreateReason-Sets Entity Create Reason.
SetEntityStateInState: EB2EntityState, InReason: EB2EntityStateChangeReasonbooleanSets Entity State.
SetForceSimulationLevelOfDetailTwobInForceSimulationLevelOfDetailTwo: boolean-Sets Force Simulation Level Of Detail Two.
SetForceSimulationLevelOfDetailZerobInForceSimulationLevelOfDetailZero: boolean-Sets Force Simulation Level Of Detail Zero.
SetLastPseudoSimulatedTickInTick: integer-Sets Last Pseudo Simulated Tick.
SetLocatedCityIdInLocatedCityId: string-Sets Located City Id.
SetOccupiedEntityIdInEntityId: FB1EntityId-Sets Occupied Entity Id.
SetPendingEntityStateInState: EB2EntityState-Records the planned state in advance when registering LazyUpdateEntityState, so that asynchronous systems (e.g. SignificanceManager) reference the correct state when processing an entity from a stale bucket.
SetPriorityPoolFixedIndexfixedIndex: integer-Sets Priority Pool Fixed Index.
SetProcessedTickCounttickCount: integer-Synchronizes with the simulation tick count.
SetSignificanceBucketInBucket: EB2EntitySigBucket-Sets Significance Bucket.
SetSignificanceStateInState: EB2EntitySigState-Sets Significance State.
SetSimulationLevelInSimulationLevel: EB1SimulationLevel-Sets Simulation Level.
SetTickEnabledbEnabled: boolean-Intentionally non-virtual: the debug hook's SLOD2-entry path calls this during tracking-map updates, so a derived side effect (callback/re-entry) would risk map inconsistency. The restore path is separated (OnTickRestore) and called after the map update.
SetTickIntervalinterval: number-Sets Tick Interval.
SetTickScalescale: number-Sets Tick Scale.
SetUpdatePoolIndexindex: integer-Sets Update Pool Index.
ShouldProcessTick-booleanReturns whether it should Process Tick.
UnsubscribeChannel: string-

Override points (14)

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

FunctionParametersReturnsDescription
Override_AddEntityStateInState: EB2EntityState, InReason: EB2EntityStateChangeReasonbooleanAdds Entity State.
Override_AddTagInTag: string, InGameTimeMinute: integer-Adds Tag.
Override_ArrangeTags_WithLock--
Override_ArrangeTags_WithoutLockCurrentTime: FDateTime-
Override_ClearSubscribe--Clears Subscribe.
Override_RefreshB1SpawnbImmediate: boolean-
Override_RemoveEntityStateInState: EB2EntityState, InReason: EB2EntityStateChangeReasonbooleanRemoves Entity State.
Override_RemoveTag_WithLockInTag: string-Removes Tag_With Lock.
Override_RemoveTag_WithoutLockInTag: string-Removes Tag_Without Lock.
Override_RequestAddChildEntityInEntityId: FB1EntityId, InAttachRule: EB1EntityAttachRule, InExtraRelativeTransform: FTransformbooleanRequests Add Child Entity.
Override_RequestRemoveChildEntityInEntityId: FB1EntityIdbooleanRequests Remove Child Entity.
Override_RequestRemoveFromHierarchy-booleanRequests Remove From Hierarchy.
Override_SendSLODInfo--Sends SLODInfo.
Override_UnsubscribeChannel: string-