![]() |
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_CatalogEntitySpawnerComponentClass |
Enumerations | |
| enum | SCR_EEntityRequestStatus { NOT_ENOUGH_SUPPLIES = 1 , NOT_ENOUGH_SPACE = 2 , RANK_LOW = 3 , COOLDOWN = 4 , REQUESTER_NOT_GROUPLEADER = 5 , GROUP_FULL = 6 , NOT_AVAILABLE = 7 , CAN_SPAWN = 8 , CAN_SPAWN_TRIGGER = 9 , AI_LIMIT_REACHED = 10 } |
Functions | |
| bool | IsProxy () |
| bool | IsSuppliesConsumptionEnabled () |
| float | GetPostGracePeriodRefundMultiplier () |
| bool | IsInGracePeriod (IEntity entity) |
| bool | IsInGracePeriod (RplId entityId) |
| bool | CanRefund (RplId entityId, RplId userId) |
| bool | CanRefund (notnull IEntity entity, notnull IEntity user) |
| void | UnregisterGracePeriod (notnull IEntity entity) |
| void | UnregisterGracePeriod (RplId entityId) |
| void | RegisterGracePeriod (notnull IEntity entity, notnull IEntity user, float startingTime=FLT_INF) |
| void | RegisterGracePeriod (RplId entityId, RplId userId, float startingTime=FLT_INF) |
| bool | RankCheck (notnull SCR_EntityCatalogEntry entityEntry, notnull IEntity user) |
| void | SetCurrentFactionCatalog () |
| Set Asset Catalog from currently owning faction. If null, asset list will be cleared. | |
| void | AddAssetsFromCatalog (notnull SCR_EntityCatalog entityCatalog, bool overwriteOld=false) |
| SCR_EntityCatalogEntry | GetEntryAtIndex (int index) |
| Obtain Faction entity from AssetList on specific index. | |
| void | AssignUserActions () |
| void | AssignResourceComponent (notnull SCR_ResourceComponent component) |
| Assign resource component to handle resources of spawner. | |
| void | AssignSupplyComponent (notnull SCR_CampaignSuppliesComponent supplyComp) |
| void | ClearKnownSlots () |
| Manually clears known slots, thus forcing Spawner to do otherwise ignored checks. | |
| void | AddKnownOccupiedSlot (notnull SCR_EntitySpawnerSlotComponent slot) |
| void | UpdateOccupiedSlots (out array< SCR_EntitySpawnerSlotComponent > occupiedSlots) |
| SCR_EntitySpawnerSlotComponent | GetLastKnownSuitableSlot (notnull SCR_EntityCatalogSpawnerData spawnerData) |
| Returns last known suitable free slot. Used to reduce amount of redundant slot checks and save performance. | |
| SCR_EntitySpawnerSlotComponent | GetFreeSlotFromArray (notnull array< SCR_EntitySpawnerSlotComponent > slots, notnull SCR_EntityCatalogSpawnerData spawnerData, notnull array< SCR_EntitySpawnerSlotComponent > occupiedSlots) |
| SCR_EntitySpawnerSlotComponent | GetFreeSlot (notnull SCR_EntityCatalogSpawnerData spawnerData) |
| void | InitiateSpawn (notnull SCR_EntityCatalogEntry entityEntry, int userId, SCR_EntitySpawnerSlotComponent slot) |
| SCR_EEntityRequestStatus | GetRequestState (notnull SCR_EntityCatalogEntry entityEntry, IEntity user=null) |
| bool | CanRequestAI (notnull IEntity user, int aiCount=1) |
| void | OnGroupWaypointFinished (notnull AIWaypoint wp) |
| void | AddAISoldierToPlayerGroup (notnull SCR_ChimeraCharacter ai, notnull IEntity user) |
| Faction | GetRequesterFaction (notnull IEntity user) |
| ScriptInvoker | GetOnEntitySpawned () |
| ScriptInvoker | GetOnSpawnerSuppliesChanged () |
| SCR_PlayerController | GetPlayerControllerFromEntity (notnull IEntity userEntity) |
| SCR_SpawnerRequestComponent | GetRequestComponentFromPlayerEntity (notnull IEntity playerEntity) |
| void | SendNotification (int msgId, notnull IEntity user, int assetId=-1, int catalogType=-1) |
| void | CreatePreviewEntity (notnull SCR_EntityCatalogEntry spawnData, notnull SCR_EntitySpawnerSlotComponent slot, SCR_EEntityRequestStatus reqStatus=SCR_EEntityRequestStatus.CAN_SPAWN) |
| void | DeletePreviewEntity () |
| Delete existing Preview entity at spawner. | |
| SCR_PrefabPreviewEntity | GetPreviewEntity () |
| void | PerformSpawn (notnull SCR_EntityCatalogEntry entityEntry, IEntity user=null, SCR_EntitySpawnerSlotComponent preferredSlot=null) |
| IEntity | SpawnEntity (ResourceName entityResourceName, notnull IEntity slotOwner) |
| void | LockSpawnedVehicle (notnull IEntity owningUser) |
| SCR_ResourceComponent | GetSpawnerResourceComponent () |
| SCR_CampaignSuppliesComponent | GetSpawnerSupplyComponent () |
| float | GetSpawnerResourceValue () |
| float | GetSpawnerSupplies () |
| void | AddSpawnerSupplies (float supplies) |
| bool | CooldownCheck (notnull IEntity user) |
| override void | OnFactionChanged (FactionAffiliationComponent owner, Faction previousFaction, Faction faction) |
| void | OnAIGroupSpawned (notnull SCR_AIGroup group, notnull IEntity user, notnull IEntity slotEntity, SCR_EntityLabelPointComponent rallyPoint=null) |
| Called from PerformSpawn, if spawned entity is AIGroup. | |
| void | SpawnAIGroupMember (ResourceName resName, notnull IEntity user, IEntity slotEntity, SCR_EntityLabelPointComponent rallyPoint=null) |
| void | OnAIAgentRemoved (SCR_AIGroup group, AIAgent ai) |
| void | OnChimeraCharacterSpawned (notnull SCR_ChimeraCharacter ai, notnull IEntity user, SCR_EntityLabelPointComponent rallyPoint=null) |
| Called from PerformSpawn, if spawned entity is ChimeraCharacter. | |
| SCR_AIWaypoint | CreateRallyPointWaypoint (notnull SCR_EntityLabelPointComponent rallyPoint) |
| Returns waypoint created as rally point for spawned unit. | |
| bool | SupplyComponentSearchCallback (IEntity ent) |
| Callback for Search query in EOnInit. Search will be stopped, if Base with Supply component is found. | |
| override void | EOnFrame (IEntity owner, float timeSlice) |
| override void | EOnInit (IEntity owner) |
| void | OnDelete (IEntity owner) |
| override void | OnPostInit (IEntity owner) |
| Editable Mine. | |
| void | ~SCR_CatalogEntitySpawnerComponent () |
|
protected |
| Enumerator | |
|---|---|
| NOT_ENOUGH_SUPPLIES | |
| NOT_ENOUGH_SPACE | |
| RANK_LOW | |
| COOLDOWN | |
| REQUESTER_NOT_GROUPLEADER | |
| GROUP_FULL | |
| NOT_AVAILABLE | |
| CAN_SPAWN | |
| CAN_SPAWN_TRIGGER | |
| AI_LIMIT_REACHED | |
Definition at line 1428 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 744 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Add Assets from entityCatalog.
| [in] | entityCatalog | Entity catalog which should be added |
| [in] | overwriteOld | IF true, old entities are overwriten by new ones, thus removing their availability |
Definition at line 360 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Set slot as occupied
| [in] | slot |
Definition at line 445 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Add or reduce (by entering negative value) supplies available to spawner
| [in] | supplies | amount of supplies to be added/reduced |
Definition at line 1090 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Assign resource component to handle resources of spawner.
Definition at line 418 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Assign supply component to handle supplies of spawner. Currently uses Campaign specific supplies (temporarily)
| supplyComp |
Definition at line 427 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Fills SCR_CatalogSpawnerUserAction actions on ActionManager. The method should always be called when the Asset list is changed.
Definition at line 387 of file SCR_CatalogEntitySpawnerComponent.c.
| [in] | entity | |
| [in] | user |
Definition at line 194 of file SCR_CatalogEntitySpawnerComponent.c.
| [in] | entityId | |
| [in] | userId |
Definition at line 178 of file SCR_CatalogEntitySpawnerComponent.c.
| [in] | user | Entity of user requesting AI |
| [in] | aiCount | Amount of AI's to be added |
Definition at line 651 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Manually clears known slots, thus forcing Spawner to do otherwise ignored checks.
Definition at line 434 of file SCR_CatalogEntitySpawnerComponent.c.
| [in] | user |
Definition at line 1133 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Used to create local "preview" model on specified slot. Used to visualise what entity is player requesting and position where it will appear
| [in] | spawnData | SCR_EntityCatalogEntry containing information about entity (prefab data is required) |
| [in] | slot | Slot on which preview should appear |
| [in] | reqStatus |
Definition at line 833 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Returns waypoint created as rally point for spawned unit.
Definition at line 1290 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Delete existing Preview entity at spawner.
Definition at line 877 of file SCR_CatalogEntitySpawnerComponent.c.
Definition at line 1327 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Obtain Faction entity from AssetList on specific index.
Definition at line 376 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Returns free slot suitable for requested Entity
| [in] | spawnerData | SCR_EntityCatalogSpawnerData found on Catalog Entry |
Definition at line 528 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Used in GetFreeSlot to obtain free slot from inserted array.
| [in] | slots | Array containing slots that will be checked |
| [in] | spawnerData | Data containing parameters needed for free slot (slotType, for example) |
| [in] | occupiedSlots |
Definition at line 500 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Returns last known suitable free slot. Used to reduce amount of redundant slot checks and save performance.
Definition at line 477 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Gets script invoker on entity spawns. Invoker will send over spawned IEntity
Definition at line 773 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Gets script invoker on supplies changes. Invoker will send over previous supply amount and changed one
Definition at line 785 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
| [in] | userEntity |
Definition at line 796 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 145 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 885 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
| [in] | playerEntity |
Definition at line 808 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Returns SCR_EEntityRequestStatus for request of selected entity with optional parameter of user requesting it.
| [in] | entityEntry | entityEntry in catalog to be spawned |
| [in] | user | User requesting spawn |
Definition at line 573 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Get the resource component that is assigned to the spawner.
Definition at line 1045 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Get resources left for spawner
Definition at line 1062 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Get supplies left for spawner
Definition at line 1079 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Get supply component assigned to spawner
Definition at line 1054 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Initiate spawn. Called through RPC from SCR_SpawnerRequestComponent on CharacterComponent
| [in] | entityEntry | entity entry to be spawned |
| [in] | userId | Id of user requesting spawn |
| [in] | slot | Slot on which user requests spawn. As last check for empty position is done by PerformSpawn itselt, this might be ignored, should slot be already occupied. |
Definition at line 551 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 138 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 1025 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 1205 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Called from PerformSpawn, if spawned entity is AIGroup.
Definition at line 1166 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Called from PerformSpawn, if spawned entity is ChimeraCharacter.
Definition at line 1228 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 1402 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 1159 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Called when AI finishes initial WP (making it move away from spawning position, before joining player squad)
| [in] | wp |
Definition at line 685 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Spawn the actual entity
| [in] | entityEntry | |
| [in] | user | |
| [in] | preferredSlot | optional slot to be used for spawning |
Definition at line 895 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Check if user is elibigle for requesting specified entity
| [in] | entityEntry | entity entry of item to be checked |
| [in] | user | controlled entity of requester |
Definition at line 302 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
| [in] | entity | |
| [in] | user | |
| [in] | startingTime |
Definition at line 256 of file SCR_CatalogEntitySpawnerComponent.c.
| [in] | entityId | |
| [in] | userId | |
| [in] | startingTime |
Definition at line 284 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 819 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Set Asset Catalog from currently owning faction. If null, asset list will be cleared.
Definition at line 332 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
| [in] | resName | |
| [in] | user | |
| [in] | slotEntity | |
| [in] | rallyPoint |
Definition at line 1195 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 1008 of file SCR_CatalogEntitySpawnerComponent.c.
Callback for Search query in EOnInit. Search will be stopped, if Base with Supply component is found.
Definition at line 1309 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
| [in] | entity |
Definition at line 212 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
| [in] | entityId |
Definition at line 234 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Update currently known occupied slots. If certain amount of time passed since last slot check, it will be removed from known slots and checked again next time it is needed.
Definition at line 457 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 1422 of file SCR_CatalogEntitySpawnerComponent.c.
| SCR_CatalogEntitySpawnerComponentClass INSTANCES = {} |
static variable used to store all the instances created of this component.
Component allowing user to request spawning entities using asset catalogs Requires ActionManager with enough SCR_CatalogSpawnerUserAction attached to it (they cannot be generated through script) and SCR_EntitySlotComponents in hiearchy or vicinity of owner
|
protected |
Definition at line 74 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 121 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 71 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 109 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 80 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 83 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 85 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 122 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 77 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 98 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 89 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 92 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 104 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 101 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 86 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 107 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 95 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 123 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 126 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 127 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 116 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 117 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 111 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 112 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 114 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 110 of file SCR_CatalogEntitySpawnerComponent.c.
|
protected |
Definition at line 68 of file SCR_CatalogEntitySpawnerComponent.c.