Used for handling entity spawning requests for SCR_CatalogEntitySpawnerComponent and inherited classes, attached to SCR_PlayerController.
More...
Used for handling entity spawning requests for SCR_CatalogEntitySpawnerComponent and inherited classes, attached to SCR_PlayerController.
◆ AddQueuedAI()
void SCR_SpawnerRequestComponent.AddQueuedAI |
( |
int |
value | ) |
|
Add (or substract) AI to quenue.
◆ EnableSpawning()
Defender spawner request from SCR_EnableDefendersAction.
- Parameters
-
[in] | defenderSpawnerComp | DefenderSpawner component to be handled |
[in] | enable | to enable or disable unit spawning |
[in] | playerID | id of player requesting the spawn |
◆ GetMessageStringForCatalogType()
string SCR_SpawnerRequestComponent.GetMessageStringForCatalogType |
( |
EEntityCatalogType |
catalogType | ) |
|
- Parameters
-
[in] | catalogType | catalog type from enum. |
- Returns
- string ID to be used in succesful request feedbacks.
◆ GetQueuedAIs()
int SCR_SpawnerRequestComponent.GetQueuedAIs |
( |
| ) |
|
- Returns
- queued requested AI units count that are currently on the way to rally point and not yet in player's group
◆ OnPostInit()
override void SCR_SpawnerRequestComponent.OnPostInit |
( |
IEntity |
owner | ) |
|
◆ RequestCatalogEntitySpawn()
Entity spawn request from SCR_SpawnEntityUserAction.
- Parameters
-
[in] | index | item index in User Action |
[in] | spawnerComponent | SpawnerComponent on which should be entity spawned |
[in] | user | the user requesting spawn |
[in] | slot | on which should be entity spawned |
◆ RequestPlayerTeleport()
void SCR_SpawnerRequestComponent.RequestPlayerTeleport |
( |
vector |
position | ) |
|
◆ RPC_DoEnableSpawning()
void SCR_SpawnerRequestComponent.RPC_DoEnableSpawning |
( |
RplId |
defenderSpawnerID, |
|
|
bool |
enable, |
|
|
int |
playerID |
|
) |
| |
|
protected |
Performs request on server.
- Parameters
-
◆ RPC_DoPlayerFeedbackImpl()
void SCR_SpawnerRequestComponent.RPC_DoPlayerFeedbackImpl |
( |
int |
msgID, |
|
|
int |
assetIndex, |
|
|
int |
catalogType |
|
) |
| |
|
protected |
Show notification about request result to the requester.
◆ RPC_DoRequestCatalogSpawn()
void SCR_SpawnerRequestComponent.RPC_DoRequestCatalogSpawn |
( |
RplId |
rplCompId, |
|
|
int |
index, |
|
|
int |
userId, |
|
|
RplId |
slotRplId |
|
) |
| |
|
protected |
Performs request on server.
- Parameters
-
[in] | rplCompId | RplComp id of entity with spawner component |
[in] | index | item index in User Action |
[in] | userId | id of user requesting spawn |
[in] | slotRplId | slot RplID OPTIONAL |
◆ RPC_DoTeleportPlayer()
void SCR_SpawnerRequestComponent.RPC_DoTeleportPlayer |
( |
vector |
position | ) |
|
|
protected |
◆ SendPlayerFeedback()
void SCR_SpawnerRequestComponent.SendPlayerFeedback |
( |
int |
msgID, |
|
|
int |
assetIndex, |
|
|
int |
catalogType = -1 |
|
) |
| |
Send notification to player.
- Parameters
-
[in] | msgID | |
[in] | assetIndex | |
[in] | catalogType | |
◆ m_iQueuedAIs
int SCR_SpawnerRequestComponent.m_iQueuedAIs |
|
protected |
◆ NOTIFICATION_DURATION
const float SCR_SpawnerRequestComponent.NOTIFICATION_DURATION = 2 |
|
static |
The documentation for this interface was generated from the following file:
- Game/Components/Spawner/CatalogSpawner/SCR_SpawnerRequestComponent.c