![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Classes | |
| class | SCR_ScenarioFrameworkLayerBaseClass |
Typedefs | |
| typedef func | ScriptInvokerScenarioFrameworkLayerMethod |
| typedef ScriptInvokerBase< ScriptInvokerScenarioFrameworkLayerMethod > | ScriptInvokerScenarioFrameworkLayer |
Enumerations | |
| enum | SCR_EScenarioFrameworkSpawnChildrenType |
| typedef ScriptInvokerBase<ScriptInvokerScenarioFrameworkLayerMethod> ScriptInvokerScenarioFrameworkLayer |
Definition at line 9 of file SCR_ScenarioFrameworkLayerBase.c.
Definition at line 8 of file SCR_ScenarioFrameworkLayerBase.c.
Definition at line 11 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Initializes all logic components.
Definition at line 961 of file SCR_ScenarioFrameworkLayerBase.c.
| void AddRandomlySpawnedChild | ( | SCR_ScenarioFrameworkLayerBase | child | ) |
Adds child to list if not already present, ensuring uniqueness.
| [in] | child | Adds child object to list of randomly spawned children if it's not already in the list. |
Definition at line 146 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Initializes logic, plugins and actions.
| [in] | layer | for which this method is called. |
Definition at line 1236 of file SCR_ScenarioFrameworkLayerBase.c.
| enum SCR_EScenarioFrameworkSpawnChildrenType Attribute | ( | defvalue:"0" | , |
| UIWidgets. | ComboBox, | ||
| desc:"Spawn all | children, | ||
| only random one or random multiple ones?" | , | ||
| "" | , | ||
| ParamEnumArray. | FromEnumSCR_EScenarioFrameworkSpawnChildrenType, | ||
| category:"Children" | ) |
|
protected |
Calculates supposed spawned children based on activation type, termination, initiation, and conditions.
| [in] | previouslyRandomized | indicates whether children layers were spawned randomly previously. |
Definition at line 713 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Checks if all children layers have spawned or spawns one randomly if specified.
| [in] | layer | for which this check is invoked. |
Definition at line 769 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Draws debug shape if draw flag is true, creates sphere shape with specified color, flags, position, and radius.
| [in] | draw | debug shape if draw is true, otherwise does nothing. |
Definition at line 1304 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Dynamically despawns this layer.
| [in] | layer | for which this is called. |
Definition at line 1023 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Reinitializes this layer.
Definition at line 1057 of file SCR_ScenarioFrameworkLayerBase.c.
Draws debug shapes during runtime if enabled.
| [in] | owner | represents the owner entity of this layer. |
| [in] | timeSlice | represents the time interval for which the method is called during each frame. |
Definition at line 1261 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Initializes children, retrieves them, and spawns them.
Definition at line 1193 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
For situations where some other logic is needed to be performed before or after this Insert.
Definition at line 1186 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 1339 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 462 of file SCR_ScenarioFrameworkLayerBase.c.
| void GetAllLayers | ( | out notnull array< SCR_ScenarioFrameworkLayerBase > | layers | ) |
Gathers all layers from child entities and their siblings, adding them to the provided array.
| [out] | layers | Represents all layers in this layer hierarchy. |
Definition at line 228 of file SCR_ScenarioFrameworkLayerBase.c.
| void GetAllLayers | ( | out notnull array< SCR_ScenarioFrameworkLayerBase > | layers, |
| SCR_ScenarioFrameworkEActivationType | activationType ) |
Gathers all layers from child entities and their siblings, adding them to the provided array, filtered by activation type
| [out] | layers | Represents all layers in this layer hierarchy. |
| [in] | activationType | that will filter output layers. |
Definition at line 253 of file SCR_ScenarioFrameworkLayerBase.c.
| void GetAllLayerTasks | ( | out notnull array< SCR_ScenarioFrameworkLayerTask > | layerTasks | ) |
Gathers all layer tasks from child entities and their siblings, adding them to the provided array.
| [out] | layerTasks | Represents all tasks associated with layers in the scenario hierarchy. |
Definition at line 278 of file SCR_ScenarioFrameworkLayerBase.c.
| void GetAllSlotTasks | ( | out notnull array< SCR_ScenarioFrameworkSlotTask > | slotTasks | ) |
Gets all slot tasks from all layers in the hierarchy of the owner entity, including sibling layers' tasks.
| [out] | slotTasks | Represents all slot tasks from the current entity and its siblings in the hierarchy. |
Definition at line 305 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Reverses and inserts children layers into an array.
| [out] | children | Returns an array of child entities with SCR_ScenarioFrameworkLayerBase component, reversed and then inserted into the main |
Definition at line 559 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Reverses and inserts children layers into an array, filtered by activation type
| [out] | children | Returns an array of child entities with SCR_ScenarioFrameworkLayerBase component, reversed and then inserted into the main |
Definition at line 591 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 532 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 483 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 497 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 504 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 448 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 384 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 476 of file SCR_ScenarioFrameworkLayerBase.c.
| bool GetIsTerminated | ( | ) |
Definition at line 110 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_ScenarioFrameworkLayerTask GetLayerTask | ( | ) |
Definition at line 331 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Retrieves all child scenario framework logic entities from owner entity and adds them to logics array if not already present.
| [out] | logics | Retrieves all child scenario framework logic entities from owner entity and adds them to logics array if not already present. |
Definition at line 623 of file SCR_ScenarioFrameworkLayerBase.c.
| int GetMaxPlayersForGameMode | ( | FactionKey | factionName = "" | ) |
Determines maximum players for a mission based on its mode, returns 4 if mission header is invalid.
| [in] | factionName | Faction name is the identifier for the faction in the game mode, used to determine the maximum number of players allowed in |
Definition at line 193 of file SCR_ScenarioFrameworkLayerBase.c.
| string GetName | ( | ) |
Definition at line 96 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 694 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_ScenarioFrameworkArea GetParentArea | ( | ) |
Definition at line 207 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Climbs the hierarchy tree to find a defined FactionKey. Only reccomended to use in Workbench for object preview. When the Game is running, directly reference m_sFactionKey or GetFactionKey().
Definition at line 399 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 426 of file SCR_ScenarioFrameworkLayerBase.c.
| int GetPlayersCount | ( | FactionKey | factionName = "" | ) |
Counts players in specified faction.
| [in] | factionName | FactionName is the key identifier for a faction in the game, used to determine player count within that faction. |
Definition at line 163 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 539 of file SCR_ScenarioFrameworkLayerBase.c.
| array< SCR_ScenarioFrameworkLayerBase > GetRandomlySpawnedChildren | ( | ) |
Definition at line 154 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 653 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_ScenarioFrameworkSlotTask GetSlotTask | ( | array< SCR_ScenarioFrameworkLayerBase > | aLayers | ) |
Retrieves slot task from layer child entities.
| [in] | aLayers | is an array of ScenarioFrameworkLayerBase objects representing layers in the scenario. |
Definition at line 351 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 441 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 525 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 954 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 639 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 646 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Initializes scenario framework layer
| [in] | area | that this layer is nested into |
| [in] | activation | Activation type for scenario framework activation. |
Definition at line 1204 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 1319 of file SCR_ScenarioFrameworkLayerBase.c.
Checks activation conditions for scenario layer, sets condition status based on logic operator, checks parent layer if needed.
Definition at line 1116 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Initialization check if already happened.
Definition at line 1065 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Initializes area for scenario framework layer
| [in] | area | sets parent area if provided or gets parent area if not provided |
Definition at line 1133 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Initializes child layer, sets parent layer, and initializes child with parent area and action type.
| [in] | child | that is to be initialized. |
Definition at line 943 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Checks if object is not dynamically despawned, then verifies if activation type matches, spawns all children if
| [in] | activation | Activation type determines if scenario object should spawn or despawn based on conditions. |
Definition at line 1100 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Handles inheritance of faction settings from parents.
Definition at line 1155 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Checks if layer is not terminated, spawns children if parent exists, returns false if terminated or children not spawnned
Definition at line 1085 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
For situations where some other logic is to be appended in these checks and is to be performed before FinishInit.
Definition at line 1179 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Initializes parent layer.
Definition at line 1073 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Spawns all children and triggers invoker on completion.
Definition at line 704 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Repetitive spawning with timer.
Definition at line 667 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Repetitive spawning logic with countdown and condition checks.
Definition at line 679 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Definition at line 1330 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Restores default settings, clears children, removes spawned entities, optionally reinitializes after restoration.
| [in] | includeChildren | Restores default settings for this entity and its children if includeChildren is true. |
| [in] | reinitAfterRestoration | Restores entity to default state, optionally reinitializes after restoration. |
| [in] | affectRandomization | determines whether to clear all randomly spawned children entities after restoring default settings. |
Definition at line 975 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | src | |
| [in] | ent | |
| [in] | parent |
Definition at line 1411 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_ScenarioFrameworkLayerBaseClass ScriptComponentClass ScriptInvokerScenarioFrameworkLayerMethod | ( | SCR_ScenarioFrameworkLayerBase | layer | ) |
|
protected |
| [in] | activationType | Sets the activation type |
Definition at line 469 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | fSize | is the radius for debug shape visualization. |
Definition at line 1296 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | enabled | Enables or disables dynamic despawning. |
Definition at line 490 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | excluded | Excludes layer from dynamic despawning. |
Definition at line 518 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | range | Represents distance in meters for dynamic despawning. |
Definition at line 511 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | value | Enables or disables repeated spawning of units for this layer. |
Definition at line 455 of file SCR_ScenarioFrameworkLayerBase.c.
| void SetEntity | ( | IEntity | entity | ) |
| [in] | entity | Sets the entity reference for further manipulation. |
Definition at line 103 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | factionKey | Sets the faction key for the layer. |
Definition at line 377 of file SCR_ScenarioFrameworkLayerBase.c.
| void SetIsTerminated | ( | bool | state | ) |
| [in] | state | termination of this layer. |
Definition at line 117 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | layer | base that will be set as parentLayer. |
Definition at line 391 of file SCR_ScenarioFrameworkLayerBase.c.
| void SetRandomlySpawnedChildren | ( | array< string > | randomlySpawnedChildren | ) |
| [in] | randomlySpawnedChildren | A list of child entities to randomly spawn |
Definition at line 124 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
| [in] | number | Represents the number of repeated spawns for an entity in the game. |
Definition at line 660 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Spawns children based on scenario settings, either all at once or randomly.
| [in] | previouslyRandomized | bool indicates whether children were spawned randomly before. |
Definition at line 816 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Spawns children with delay based on their index.
Definition at line 872 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Spawns random children based on player count, if previously randomized, uses previous children, otherwise selects from available children.
| [in] | previouslyRandomized | state is stored, used for spawning them again in the same positions. |
Definition at line 907 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Spawns random child object if not previously randomized, else spawns previously randomized children.
| [in] | previouslyRandomized | indicates if children were spawned randomly before. |
Definition at line 892 of file SCR_ScenarioFrameworkLayerBase.c.
|
protected |
Removes object in edit mode or despawns it if not in edit mode.
Definition at line 1427 of file SCR_ScenarioFrameworkLayerBase.c.
| @ ALL |
Definition at line 0 of file SCR_ScenarioFrameworkLayerBase.c.
| ref array<ref SCR_ScenarioFrameworkActionBase> m_aActivationActions |
Definition at line 55 of file SCR_ScenarioFrameworkLayerBase.c.
| ref array<ref SCR_ScenarioFrameworkActivationConditionBase> m_aActivationConditions |
Definition at line 49 of file SCR_ScenarioFrameworkLayerBase.c.
| ref array<SCR_ScenarioFrameworkLayerBase> m_aChildren = {} |
Definition at line 69 of file SCR_ScenarioFrameworkLayerBase.c.
| ref array<SCR_ScenarioFrameworkLogic> m_aLogic = {} |
Definition at line 71 of file SCR_ScenarioFrameworkLayerBase.c.
| ref array<ref SCR_ScenarioFrameworkPlugin> m_aPlugins |
Definition at line 67 of file SCR_ScenarioFrameworkLayerBase.c.
| ref array<SCR_ScenarioFrameworkLayerBase> m_aRandomlySpawnedChildren = {} |
Definition at line 70 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_ScenarioFrameworkArea m_Area |
Definition at line 76 of file SCR_ScenarioFrameworkLayerBase.c.
| ref array<IEntity> m_aSpawnedEntities = {} |
Definition at line 74 of file SCR_ScenarioFrameworkLayerBase.c.
| bool m_bDynamicallyDespawned |
Definition at line 85 of file SCR_ScenarioFrameworkLayerBase.c.
| bool m_bDynamicDespawn |
Definition at line 58 of file SCR_ScenarioFrameworkLayerBase.c.
| bool m_bEnableRepeatedSpawn |
Definition at line 31 of file SCR_ScenarioFrameworkLayerBase.c.
| bool m_bExcludeFromDynamicDespawn |
Definition at line 64 of file SCR_ScenarioFrameworkLayerBase.c.
| bool m_bInitiated |
Definition at line 84 of file SCR_ScenarioFrameworkLayerBase.c.
| bool m_bIsTerminated |
Definition at line 86 of file SCR_ScenarioFrameworkLayerBase.c.
| bool m_bShowDebugShapesDuringRuntime |
Definition at line 40 of file SCR_ScenarioFrameworkLayerBase.c.
| bool m_bShowDebugShapesInWorkbench |
Definition at line 43 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_EScenarioFrameworkLogicOperators m_eActivationConditionLogic |
Definition at line 52 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_ScenarioFrameworkEActivationType m_eActivationType |
Definition at line 46 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_ScenarioFrameworkEActivationType m_eActivationTypeDefault = m_eActivationType |
Definition at line 90 of file SCR_ScenarioFrameworkLayerBase.c.
| IEntity m_Entity |
Definition at line 75 of file SCR_ScenarioFrameworkLayerBase.c.
| float m_fDebugShapeRadius = 0.25 |
Definition at line 78 of file SCR_ScenarioFrameworkLayerBase.c.
| float m_fRepeatedSpawnTimer |
Definition at line 37 of file SCR_ScenarioFrameworkLayerBase.c.
| WorldTimestamp m_fRepeatSpawnTimeEnd |
Definition at line 80 of file SCR_ScenarioFrameworkLayerBase.c.
| WorldTimestamp m_fRepeatSpawnTimeStart |
Definition at line 79 of file SCR_ScenarioFrameworkLayerBase.c.
| int m_iCurrentlySpawnedChildren |
Definition at line 82 of file SCR_ScenarioFrameworkLayerBase.c.
Definition at line 81 of file SCR_ScenarioFrameworkLayerBase.c.
| int m_iDynamicDespawnRange |
Definition at line 61 of file SCR_ScenarioFrameworkLayerBase.c.
| int m_iRandomPercent |
Definition at line 28 of file SCR_ScenarioFrameworkLayerBase.c.
| int m_iRepeatedSpawnNumber |
Definition at line 34 of file SCR_ScenarioFrameworkLayerBase.c.
| int m_iRepeatedSpawnNumberDefault = m_iRepeatedSpawnNumber |
Definition at line 89 of file SCR_ScenarioFrameworkLayerBase.c.
| int m_iSupposedSpawnedChildren |
Definition at line 83 of file SCR_ScenarioFrameworkLayerBase.c.
| ref ScriptInvokerBase<ScriptInvokerScenarioFrameworkLayerMethod> m_OnAllChildrenSpawned |
Definition at line 73 of file SCR_ScenarioFrameworkLayerBase.c.
| SCR_ScenarioFrameworkLayerBase m_ParentLayer |
Definition at line 77 of file SCR_ScenarioFrameworkLayerBase.c.
| FactionKey m_sFactionKey |
Definition at line 25 of file SCR_ScenarioFrameworkLayerBase.c.
| RANDOM_BASED_ON_PLAYERS_COUNT |
Definition at line 3 of file SCR_ScenarioFrameworkLayerBase.c.
| RANDOM_MULTIPLE |
Definition at line 2 of file SCR_ScenarioFrameworkLayerBase.c.
| RANDOM_ONE |
Definition at line 1 of file SCR_ScenarioFrameworkLayerBase.c.