PC Stable Documentation
|
|
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< Shape > | m_DbgShapesBoxes |
static private ref array< Shape > | m_DbgShapesPolygonLines |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
References vector::DistanceSq(), m_Data, and CfgPlayerRestrictedAreaJsonData::m_ValidatedAreas.
Referenced by IsPointInPlayerRestrictedAreaClosest().
|
inlinestaticprivate |
default cylinder values sufficient for player detection
References Math3D::IntersectCylinderOBB(), and Math3D::MatrixIdentity4().
Referenced by IsPointInPlayerRestrictedArea(), and IsPointInPlayerRestrictedAreaClosest().
|
inlinestaticprivate |
References m_Initialized.
Referenced by ManBase::AfterStoreLoad(), DrawBoxesDebug(), DrawPolygonLinesDebug(), IsPointInPlayerRestrictedArea(), and IsPointInPlayerRestrictedAreaClosest().
|
inlinestaticprivate |
References Math2D().
Referenced by IsPointInPlayerRestrictedArea(), and IsPointInPlayerRestrictedAreaClosest().
|
inlinestaticprivate |
References IsCylinderInAreaBox(), IsInitialized(), IsPointInAreaPolygon(), m_Data, and CfgPlayerRestrictedAreaJsonData::m_ValidatedAreas.
Referenced by ManBase::AfterStoreLoad().
|
inlinestaticprivate |
References GetClosestArea(), IsCylinderInAreaBox(), IsInitialized(), and IsPointInAreaPolygon().
|
inlinestaticprivate |
References ErrorEx, FileExist(), string::Format(), g_Game, GetGame(), CfgGameplayHandler::GetPlayerRestrictedAreaFiles(), CGame::GetWorldName(), CfgPlayerRestrictedAreaJsonData::InitializeAreas(), CfgPlayerRestrictedAreaJsonData::m_Areas, m_Data, m_Initialized, m_PRAFiles, and path.
Referenced by MissionBase::OnInit().
|
inlinestaticprivate |
References ErrorEx, m_Data, m_Initialized, CfgPlayerRestrictedAreaJsonData::m_ValidatedAreas, and Serializer::Read().
Referenced by CGame::OnRPC().
|
inlinestaticprivate |
References GetGame(), m_Data, and CGame::RPCSingleParam().
Referenced by MissionBase::OnEvent().
|
staticprivate |
Referenced by DrawBoxesDebug(), DrawPolygonLinesDebug(), GetClosestArea(), IsPointInPlayerRestrictedArea(), LoadData(), OnRPC(), and SyncDataSend().
Referenced by DrawBoxesDebug().
Referenced by DrawPolygonLinesDebug().
|
staticprivate |
Referenced by IsInitialized(), LoadData(), and OnRPC().
|
staticprivate |
Referenced by LoadData().