|
void | ZoneCheckUpdate (bool updateAll, SCR_EditorRestrictionZoneEntity removedZone=null, array< int > playerIDZoneMoved=null) |
|
void | SetPlayerZoneData (int playerID, IEntity playerEntity, bool inZone, bool inWarningZone, ERestrictionZoneWarningType warningType, vector zoneCenter=vector.Zero, float warningRadiusSq=-1, float zoneRadiusSq=-1) |
|
void | ShowWarningUI (int playerID, bool show, ERestrictionZoneWarningType warningIndex, bool centerChanged, vector zoneCenter, float warningRadiusSq, float zoneRadiusSq) |
|
void | KillPlayerOutOfZone (int playerID, IEntity playerEntity) |
|
void | ZoneMovedOrDeleted (SCR_EditorRestrictionZoneEntity zone, array< int > playerIDZoneMoved=null) |
|
void | OnEntityTransformChanged (SCR_EditableEntityComponent editableEntity, vector prevTransfom[4]) |
|
void | OnPlayerDisconnect (int playerID) |
|
void | OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData) |
|
void | DelayedInit () |
|
◆ AddRestrictionZone()
Add restriction zone so it can be checked if a player is in/leaves a zone.
Server only
- Parameters
-
◆ DelayedInit()
void SCR_PlayersRestrictionZoneManagerComponent.DelayedInit |
( |
| ) |
|
|
protected |
◆ EOnInit()
override void SCR_PlayersRestrictionZoneManagerComponent.EOnInit |
( |
IEntity | owner | ) |
|
◆ KillPlayerOutOfZone()
void SCR_PlayersRestrictionZoneManagerComponent.KillPlayerOutOfZone |
( |
int | playerID, |
|
|
IEntity | playerEntity ) |
|
protected |
◆ OnDelete()
override void SCR_PlayersRestrictionZoneManagerComponent.OnDelete |
( |
IEntity | owner | ) |
|
◆ OnEntityTransformChanged()
void SCR_PlayersRestrictionZoneManagerComponent.OnEntityTransformChanged |
( |
SCR_EditableEntityComponent | editableEntity, |
|
|
vector | prevTransfom[4] ) |
|
protected |
◆ OnPlayerDisconnect()
void SCR_PlayersRestrictionZoneManagerComponent.OnPlayerDisconnect |
( |
int | playerID | ) |
|
|
protected |
◆ OnPlayerKilled()
◆ OnPostInit()
override void SCR_PlayersRestrictionZoneManagerComponent.OnPostInit |
( |
IEntity | owner | ) |
|
◆ RemoveRestrictionZone()
Remove restriction zone so it no longer checks if a player is in/leaves a zone.
Server only
- Parameters
-
[in] | zone | the zone to remove |
◆ SetPlayerZoneData()
void SCR_PlayersRestrictionZoneManagerComponent.SetPlayerZoneData |
( |
int | playerID, |
|
|
IEntity | playerEntity, |
|
|
bool | inZone, |
|
|
bool | inWarningZone, |
|
|
ERestrictionZoneWarningType | warningType, |
|
|
vector | zoneCenter = vector::Zero, |
|
|
float | warningRadiusSq = -1, |
|
|
float | zoneRadiusSq = -1 ) |
|
protected |
◆ ShowWarningUI()
void SCR_PlayersRestrictionZoneManagerComponent.ShowWarningUI |
( |
int | playerID, |
|
|
bool | show, |
|
|
ERestrictionZoneWarningType | warningIndex, |
|
|
bool | centerChanged, |
|
|
vector | zoneCenter, |
|
|
float | warningRadiusSq, |
|
|
float | zoneRadiusSq ) |
|
protected |
◆ ZoneCheckUpdate()
void SCR_PlayersRestrictionZoneManagerComponent.ZoneCheckUpdate |
( |
bool | updateAll, |
|
|
SCR_EditorRestrictionZoneEntity | removedZone = null, |
|
|
array< int > | playerIDZoneMoved = null ) |
|
protected |
◆ ZoneMovedOrDeleted()
◆ m_aRestrictionZones
◆ m_iPlayerCheckIndex
int SCR_PlayersRestrictionZoneManagerComponent.m_iPlayerCheckIndex = 0 |
|
protected |
◆ m_PlayerManager
PlayerManager SCR_PlayersRestrictionZoneManagerComponent.m_PlayerManager |
|
protected |
◆ m_PlayerRestrictionZoneData
◆ ZONE_CHECK_FREQUENCY
const int SCR_PlayersRestrictionZoneManagerComponent.ZONE_CHECK_FREQUENCY = 50 |
|
staticprotected |
◆ ZONE_CHECK_PLAYER_BATCH_AMOUNT
const int SCR_PlayersRestrictionZoneManagerComponent.ZONE_CHECK_PLAYER_BATCH_AMOUNT = 10 |
|
staticprotected |
The amount of players the manager checks each update.
The leftovers will be done next update etc
The documentation for this interface was generated from the following file:
- Game/RestrictionZone/SCR_PlayersRestrictionZoneManagerComponent.c