![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Static Protected Member Functions | |
| static void | ClearAccumulatedBudgetChanges () |
| static SCR_EditableEntityComponent | SpawnEntityResource (ResourceName prefab, vector transform[4]) |
| static SCR_EditableEntityComponent | SpawnEntityResource (SCR_EditorPreviewParams params, Resource prefabResource, int playerID=0, bool isQueue=false, SCR_EditableEntityComponent recipient=null, bool canBePlayer=false) |
| static void | UpdatePlayerFactionFromEditableEntity (Faction editableEntityFaction, int playerID) |
| helper function to avoid nesting | |
| static void | OnAIGroupAllEntitiesSpawned (SCR_AIGroup group) |
| Callback reacting to all delayed spawned entities being created. | |
| static EEditorPlacingFlags | GetCompatiblePlacingFlags (Resource prefabResource) |
Protected Attributes | |
| float | m_fSpacing |
| SCR_PreviewEntityEditorComponent | m_PreviewManager |
| SCR_BudgetEditorComponent | m_BudgetManager |
| SCR_EditableEntityCore | m_editableEntityCore |
| int | m_iActionInfo |
| ref SCR_EditorPreviewParams | m_InstantPlacingParam |
| bool | m_bBlockPlacing |
| const float | MAX_HEIGHT_ABOVE_TERRAIN = 2 |
| the height above the terrain [m], that is a margin of error when player is trying to spawn something while not having permision to adjust the vertical position | |
Static Protected Attributes | |
| static SCR_EditableEntityComponent | m_DelayedSpawnEntity |
| static ref SCR_EditorPreviewParams | m_DelayedSpawnPreviewParams |
| ref map< EEditableEntityBudget, int > | m_accumulatedBudgetChanges = new map<EEditableEntityBudget, int> |
| static SCR_PlacingEditorComponent | serverPlacingEditorComponent |
| static bool | m_accumulatedBudgetChangesClearQueued = false |
Definition at line 118 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Checks if the prefab can be spawned Evaluated both on client an on server (notification is used only on client though) To be overridden by inherited classes.
| [out] | outNotification | id of the notification that will be used locally |
| [in,out] | previewStateToShow | state of the preview |
| [in] | params | which are going to be used for spawning the prefab |
| [in] | prefabID | id of the prefab that is going to be spawned. Since only client has the necessary data to validate the prefabID, server always uses default value here |
Definition at line 736 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Server side validation that checks if provided entity should be possible to spawn
| [in] | editableEntitySource | of the prefab which is going to be spawned |
| [out] | blockingBudget | |
| [in] | updatePreview | |
| [in] | showNotification | |
| [in] | playerID | of the user who requested this prefab to be spawned |
| [in] | params | which were used to define how this prefab should be spawned |
Definition at line 1101 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1117 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 835 of file SCR_PlacingEditorComponent.c.
|
inlinestaticprotected |
Definition at line 633 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Create entity exactly where the preview entity is. The entity is created from a prefab defined by SetSelectedPrefab().
| [in] | unselectPrefab | True to unselect prefab after placing the entity |
| [in] | canBePlayer | True if the entity should be spawned as player |
| [in] | holder | Entity to which the spawned entity will be attached (used in waypoints and tasks) |
| [in] | sourceAction | which requested this prefab creation |
Definition at line 221 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Create entity with custom params.
| [in] | prefab | Entity prefab |
| [in] | param | Preview param |
| [in] | unselectPrefab | True to unselect prefab after placing the entity |
| [in] | canBePlayer | True if the entity should be spawned as player |
| [in] | recipients | Array of entities for whom new entities will be created (e.g., waypoints for groups) |
| [in] | holder | Entity to which the spawned entity will be attached (used in waypoints and tasks) |
| [in] | sourceAction | which requested this prefab creation |
Definition at line 380 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 640 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 392 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1513 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1528 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1464 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1498 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1478 of file SCR_PlacingEditorComponent.c.
|
inlinestaticprotected |
Definition at line 1057 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Fetches the name of the mode that this editor represents
Definition at line 560 of file SCR_PlacingEditorComponent.c.
Definition at line 1131 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Get event called when an entity is placed. Called only for editor user.
Definition at line 1454 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1459 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Get event called when placing flags change. Called only for editor user.
Definition at line 1436 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Get event called when request for placing an entity is sent to server. Called only for editor user.
Definition at line 1445 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Get invoker called when selected prefab changes.
Definition at line 1427 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 202 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Get currently placed prefab.
Definition at line 1292 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Get slot which placing preview is currently attached to.
Definition at line 1312 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Check if placing flag is active.
| flag | Placing flag |
Definition at line 1400 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Checks if the requested prefab matches the action content
| [in] | prefabID | from the content browser |
| [in] | params | which contain the information about the spawned entity |
Definition at line 809 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1296 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 192 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Check if placing flag is allowed in placing manager settings.
| flag | Placing flag |
Definition at line 1418 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Check if placing flag is compatible with currently placed entity.
| flag | Placing flag |
Definition at line 1409 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 569 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 169 of file SCR_PlacingEditorComponent.c.
|
inlinestaticprotected |
Callback reacting to all delayed spawned entities being created.
Definition at line 1047 of file SCR_PlacingEditorComponent.c.
|
protected |
Function called right before entities are created on server. To be overloaded by inherited classes.
| prefab | Prefab that entities to be created will use |
|
inlineprotected |
Definition at line 845 of file SCR_PlacingEditorComponent.c.
|
protected |
Function called when entities are created on server. To be overloaded by inherited classes.
| entities | Array of created entities |
|
inlineprotected |
Definition at line 1156 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Sets the cycle waypoints to the given value on each group of the array
| [in] | selectedGroups | array of groups not null |
| [in] | value | of type bool |
Definition at line 1542 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 1567 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Set instant placing parameters. When defined, selected entity will be placed immediatelly.
| param | Placing param |
Definition at line 1174 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Definition at line 187 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Set value of placing flag.
| Placing | flag |
| toAdd | True to set the flag, false to unset it |
Definition at line 1321 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Set currently placed prefab.
| prefab | Prefab. Must be registered! |
Definition at line 1184 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Attach plcing preview to a slot.
| slot | Slot entity |
Definition at line 1304 of file SCR_PlacingEditorComponent.c.
|
inlinestaticprotected |
Create entity from prefab resource.
| prefab | Entity prefab |
| transform | Spawning transformation matrix |
Definition at line 857 of file SCR_PlacingEditorComponent.c.
|
inlinestaticprotected |
Create entity with given params.
| params | Spawning params \prefabResource Prefab which will be spawned \playerID Id of entity requested spawning. \recipient Currently selected entity for whom the new entity is added (e.g., new waypoint for a group) \canBePlayer When true, spawned entity will become the player |
Definition at line 870 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Toggle value of placing flag.
| flag | Placing flag |
Definition at line 1391 of file SCR_PlacingEditorComponent.c.
|
inlineprotected |
Update budget with given placing flags
| selectedPrefab | Current selected prefab resource |
| flagChanged | Flag that was changed |
| currentPlacingFlag | Current placing flags |
| prevPlacingFlag | The placing flags that where active before new flags are set |
Definition at line 1352 of file SCR_PlacingEditorComponent.c.
|
inlinestaticprotected |
helper function to avoid nesting
Definition at line 1028 of file SCR_PlacingEditorComponent.c.
|
staticprotected |
Definition at line 154 of file SCR_PlacingEditorComponent.c.
|
staticprotected |
Definition at line 164 of file SCR_PlacingEditorComponent.c.
|
protected |
Definition at line 140 of file SCR_PlacingEditorComponent.c.
|
protected |
Definition at line 126 of file SCR_PlacingEditorComponent.c.
|
staticprotected |
Definition at line 151 of file SCR_PlacingEditorComponent.c.
|
staticprotected |
Definition at line 152 of file SCR_PlacingEditorComponent.c.
|
protected |
Definition at line 127 of file SCR_PlacingEditorComponent.c.
|
protected |
Definition at line 121 of file SCR_PlacingEditorComponent.c.
|
protected |
Definition at line 128 of file SCR_PlacingEditorComponent.c.
|
protected |
Definition at line 138 of file SCR_PlacingEditorComponent.c.
|
protected |
Definition at line 125 of file SCR_PlacingEditorComponent.c.
|
protected |
the height above the terrain [m], that is a margin of error when player is trying to spawn something while not having permision to adjust the vertical position
Definition at line 167 of file SCR_PlacingEditorComponent.c.
|
staticprotected |
Definition at line 163 of file SCR_PlacingEditorComponent.c.