PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
CfgPlayerRestrictedAreaHandler Class Reference

Static Private Member Functions

static bool LoadData ()
 
static bool IsInitialized ()
 
static void SyncDataSend (notnull PlayerIdentity identity)
 
static void OnRPC (ParamsReadContext ctx)
 
static bool IsPointInPlayerRestrictedAreaClosest (vector point, out PlayerRestrictedAreaInstance hitArea)
 
static bool IsPointInPlayerRestrictedArea (vector point, out PlayerRestrictedAreaInstance hitArea)
 
static private PlayerRestrictedAreaInstance GetClosestArea (vector point)
 
static private bool IsCylinderInAreaBox (notnull PlayerRestrictedAreaInstance area, vector point, float cylinderRadius=0.25, float cylinderHeight=1)
 default cylinder values sufficient for player detection
 
static private bool IsPointInAreaPolygon (notnull PlayerRestrictedAreaInstance area, vector point)
 
static void DrawBoxesDebug (bool draw)
 
static void DrawPolygonLinesDebug (bool draw)
 

Static Private Attributes

static private bool m_Initialized
 
static ref TStringArray m_PRAFiles = new TStringArray()
 
static ref CfgPlayerRestrictedAreaJsonData m_Data = new CfgPlayerRestrictedAreaJsonData()
 
static private ref array< Shapem_DbgShapesBoxes
 
static private ref array< Shapem_DbgShapesPolygonLines
 

Member Function Documentation

◆ DrawBoxesDebug()

static void DrawBoxesDebug ( bool  draw)
inlinestaticprivate

◆ DrawPolygonLinesDebug()

◆ GetClosestArea()

static private PlayerRestrictedAreaInstance GetClosestArea ( vector  point)
inlinestaticprivate

◆ IsCylinderInAreaBox()

static private bool IsCylinderInAreaBox ( notnull PlayerRestrictedAreaInstance  area,
vector  point,
float  cylinderRadius = 0.25,
float  cylinderHeight = 1 
)
inlinestaticprivate

default cylinder values sufficient for player detection

References Math3D::IntersectCylinderOBB(), and Math3D::MatrixIdentity4().

Referenced by IsPointInPlayerRestrictedArea(), and IsPointInPlayerRestrictedAreaClosest().

◆ IsInitialized()

◆ IsPointInAreaPolygon()

static private bool IsPointInAreaPolygon ( notnull PlayerRestrictedAreaInstance  area,
vector  point 
)
inlinestaticprivate

◆ IsPointInPlayerRestrictedArea()

static bool IsPointInPlayerRestrictedArea ( vector  point,
out PlayerRestrictedAreaInstance  hitArea 
)
inlinestaticprivate

◆ IsPointInPlayerRestrictedAreaClosest()

static bool IsPointInPlayerRestrictedAreaClosest ( vector  point,
out PlayerRestrictedAreaInstance  hitArea 
)
inlinestaticprivate

◆ LoadData()

◆ OnRPC()

static void OnRPC ( ParamsReadContext  ctx)
inlinestaticprivate

◆ SyncDataSend()

static void SyncDataSend ( notnull PlayerIdentity  identity)
inlinestaticprivate

Field Documentation

◆ m_Data

◆ m_DbgShapesBoxes

private ref array<Shape> m_DbgShapesBoxes
staticprivate

Referenced by DrawBoxesDebug().

◆ m_DbgShapesPolygonLines

private ref array<Shape> m_DbgShapesPolygonLines
staticprivate

Referenced by DrawPolygonLinesDebug().

◆ m_Initialized

private bool m_Initialized
staticprivate

Referenced by IsInitialized(), LoadData(), and OnRPC().

◆ m_PRAFiles

ref TStringArray m_PRAFiles = new TStringArray()
staticprivate

Referenced by LoadData().


The documentation for this class was generated from the following file: