class CfgPlayerRestrictedAreaHandlerSource
Members 5
private static bool m_Initializedstatic ref TStringArray m_PRAFiles = new TStringArray()Referenced by LoadData()
static ref CfgPlayerRestrictedAreaJsonData m_Data = new CfgPlayerRestrictedAreaJsonData()Referenced by DrawBoxesDebug(), DrawPolygonLinesDebug(), GetClosestArea()
Show 4 more
, IsPointInPlayerRestrictedArea(), LoadData(), OnRPC(), and SyncDataSend()Referenced by DrawBoxesDebug()
Referenced by DrawPolygonLinesDebug()
Methods 11
static bool LoadData()References ErrorEx(), FileExist(), string.Format()
Show 14 more
, WorldData.GetDefaultPRAPaths(), CGame.GetMission(), CfgGameplayHandler.GetPlayerRestrictedAreaFiles(), Mission.GetWorldData(), CGame.GetWorldName(), CfgPlayerRestrictedAreaJsonData.InitializeAreas(), array.Insert(), JsonFileLoader.LoadFile(), new PlayerRestrictedAreaInstance(), CGame.ServerConfigGetInt(), CfgPlayerRestrictedAreaJsonData.m_Areas, m_Data, m_Initialized, and m_PRAFilesReferenced by MissionServer.OnInit()
static bool IsInitialized()References m_Initialized
Referenced by DrawBoxesDebug(), DrawPolygonLinesDebug(), IsPointInPlayerRestrictedArea()
Show 2 more
, IsPointInPlayerRestrictedAreaClosest(), and PlayerBase.AfterStoreLoad()static void SyncDataSend(notnull PlayerIdentity identity)Referenced by MissionServer.OnEvent()
static void OnRPC(ParamsReadContext ctx)References array.Count(), ErrorEx(), Serializer.Read()
Show 4 more
, m_Data, m_Initialized, CfgPlayerRestrictedAreaJsonData.m_ValidatedAreas, and Param1.param1Referenced by DayZGame.OnRPC()
static bool IsPointInPlayerRestrictedAreaClosest(vector point, out PlayerRestrictedAreaInstance hitArea)References GetClosestArea(), IsCylinderInAreaBox(), IsInitialized()
Show 1 more
, IsPointInAreaPolygon()static bool IsPointInPlayerRestrictedArea(vector point, out PlayerRestrictedAreaInstance hitArea)References IsCylinderInAreaBox(), IsInitialized(), IsPointInAreaPolygon()
Show 2 more
, m_Data, and CfgPlayerRestrictedAreaJsonData.m_ValidatedAreasprivate static PlayerRestrictedAreaInstance GetClosestArea(vector point)References vector.DistanceSq(), PlayerRestrictedAreaInstance.GetCenterPos2D(), m_Data
Show 2 more
, CfgPlayerRestrictedAreaJsonData.m_ValidatedAreas, and float.MAXReferenced by IsPointInPlayerRestrictedAreaClosest()
private static bool IsCylinderInAreaBox(notnull PlayerRestrictedAreaInstance area, vector point, float cylinderRadius = 0.25, float cylinderHeight = 1)default cylinder values sufficient for player detection
private static bool IsPointInAreaPolygon(notnull PlayerRestrictedAreaInstance area, vector point)References array.Clear(), array.Insert(), Math2D.IsPointInPolygon()
Show 1 more
, PlayerRestrictedAreaInstance.PRAPolygonsstatic void DrawBoxesDebug(bool draw)Referenced by PluginDiagMenuClient.CBPRADrawAll()
static void DrawPolygonLinesDebug(bool draw)Referenced by PluginDiagMenuClient.CBPRADrawAll()