Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
JsonApiStruct Class Reference
Inheritance diagram for JsonApiStruct:
Managed

Private Member Functions

void JsonApiStruct ()
void ~JsonApiStruct ()
proto native string AsString ()
 Get packed JSON as string (!only if you called Pack() first, it may return null).
proto native void EndArray ()
 End array at hierarchy - !
proto native void EndObject ()
 End object at hierarchy - !
proto native void ExpandFromRAW (string data)
 Start object unpacking from RAW string data.
proto native void InstantPack ()
 Start object packing now - for use at main thread only!
proto native void ItemBoolean (bool value)
 Add unnamed/ array boolean value.
proto native void ItemFloat (float value)
 Add unnamed/ array float value.
proto native void ItemInteger (int value)
 Add unnamed/ array integer value.
proto native void ItemObject (JsonApiStruct obj)
 Add scripted unnamed/ array object.
proto native void ItemString (string value)
 Add unnamed/ array string value.
proto native void ItemVector (vector value)
 Add unnamed/ array vector value.
proto native bool LoadFromFile (string FileName)
 Load JSON from file and Expand.
void OnBoolean (string name, bool value)
 Called when parsing boolean value.
void OnBufferReady ()
 Verification event after successfull JSON packing.
void OnEndArray (int itemCount)
 Called when array end, returns count of items.
void OnError (int errorCode)
 Event called when pending store operation is finished - callback from JsonApiHandle before handle release.
void OnExpand ()
 Event when expand (unpack) process starts.
void OnFloat (string name, float value)
 Called when parsing float value.
void OnInteger (string name, int value)
 Called when parsing integer value.
void OnItemBoolean (int index, bool value)
 Called when parsing boolean value.
void OnItemFloat (int index, float value)
 Called when parsing float value.
void OnItemInteger (int index, int value)
 Called when parsing integer value.
void OnItemObject (int index, string name)
 Called when parsing object.
void OnItemString (int index, string value)
 Called when parsing string value from array.
void OnItemVector (int index, vector value)
 Called when parsing vector value from array.
void OnObject (string name)
 Called when parsing object.
void OnPack ()
 Event when pack starts - you will pack your stuff here.
void OnStartArray (string name)
 Called when parsing array.
void OnString (string name, string value)
 Called when parsing string value.
void OnSuccess (int errorCode)
 Event called when pending store operation is finished - callback from JsonApiHandle before handle release.
void OnVector (string name, vector value)
 Called when parsing vector value.
proto native void Pack ()
 Start object packing - when it can be done (when sending remote etc.).
proto native bool PackToFile (string FileName)
 Pack() and save JSON to file.
proto native void Push (JsonApiStruct obj)
 Push object to parse (only during parse operation).
proto native void RegV (string name)
 Register script variable for auto-feature.
proto native bool SaveToFile (string FileName)
 Save JSON to file (only If something was loaded or recieved previously!).
proto native void SetDone ()
 Call this when you've done packing or unpacking (interrupt operation).
proto native void SetFail ()
 Call this when you've done packing or unpacking + want to generate error - prevent to send invalid data etc.
proto native void StartArray (string name)
 Start array at hierarchy - !
proto native void StartObject (string name)
 Start object at hierarchy - !
proto native void StoreBoolean (string name, bool value)
 Add boolean value to hierarchy.
proto native void StoreFloat (string name, float value)
 Add float value to hierarchy.
proto native void StoreInteger (string name, int value)
 Add integer value to hierarchy.
proto native void StoreObject (string name, JsonApiStruct obj)
 Add scripted object to hierarchy (calls through hierarchy).
proto native void StoreString (string name, string value)
 Add string value to hierarchy.
proto native void StoreVector (string name, vector value)
 Add vector value to hierarchy.
Private Member Functions inherited from Managed
void ~IntroSceneCharacter ()
void BleedingIndicator (int source_ID, int severity, GameplayEffectsDataBleeding parent)
void CharacterLoad (int character_id, vector char_pos, vector char_rot)
void CharacterUnload ()
void CheckBlood ()
void CheckHealth ()
void CheckValues ()
void CreateDefaultCharacter ()
void CreateNewCharacter ()
void CreateNewCharacterById (int character_id)
void CreateNewCharacterByName (string character_name, bool randomize_equip=true)
void CreateNewCharacterRandom ()
bool DataInitialized ()
void ForceStop ()
void GameplayEffectsData (array< ref Widget > input, int type, int user_override=-1)
float GetBlood ()
ECharGender GetCharacterGender ()
int GetCharacterID ()
string GetCharacterName ()
string GetCharacterNameById (int char_id)
PlayerBase GetCharacterObj ()
TStringArray GetCharGenderList ()
TStringArray GetCharList (ECharGender gender)
TStringArray GetCharPantsList ()
TStringArray GetCharShirtsList ()
TStringArray GetCharShoesList ()
bool GetEndNow ()
float GetHealth ()
void GetLastPlayedServer (int characterID, out string address, out string name, out int port)
void GetLastPlayedServerEx (int characterID, out string address, out string name, out int port, out int steamQueryPort)
int GetNextCharacterID ()
vector GetPosition ()
int GetPrevCharacterID ()
int GetSeverity ()
array< ref WidgetGetWidgetSet ()
int GetWidgetSetID ()
int GetWidgetSetType ()
bool HasDefinedHandle ()
 Returns 'true' if this class contains update info.
void Init ()
void Init (array< ref Widget > input, int type, Widget layout_root, int user_override=-1)
void InitIndicator (vector position)
void IntroSceneCharacter ()
bool IsCharacterFemale ()
bool IsDefaultCharacter ()
bool IsRunningDrops ()
 Are any drops currently being animated?
void LoadCharacterData (vector char_pos, vector char_rot, bool default_char=false)
 Generates random equip for the new IntroSceneCharacter, whatever is defined in 'cfgCharacterCreation'.
void OnRPC (ParamsReadContext ctx)
void OnScheduledTick (float deltatime)
void ReceiveValue (int value_type, float value)
void RegisterData (Param p)
void ResetIndicator ()
void ResetSequence ()
void SaveCharName (string name)
void SaveDefaultCharacter ()
void SendInitValues ()
 Sends values on object creation.
void SendValue (int value_type, float value)
void SetAttachment (string type, int slot)
void SetCharacterGender (ECharGender gender)
void SetCharacterID (int char_id)
void SetToDefaultCharacter ()
void SetupPlayerName (bool new_name)
void ShowDebugValues (bool show)
void StartRunningDrops ()
void StopIndicator (bool instant=false)
void TransferValues (PlayerBase player)
void TrySpawnNextDrop ()
void Update (float timeSlice)
void Update (float timeSlice=0, Param p=null, int handle=-1)
void UpdateVisibility (bool state)

Additional Inherited Members

Private Attributes inherited from Managed
ref set< ref BleedingIndicatorDropDatam_ActiveDrops
int m_ActiveDropsCount
float m_AverageFrequency
vector m_BasePosition
MenuData m_CharacterDta
int m_CharacterId
PlayerBase m_CharacterObj
vector m_CharacterPos
vector m_CharacterRot
ref map< ECharGender, ref array< string > > m_Characters = new map<ECharGender, ref array<string>>
string m_CharacterType
ECharGender m_CharGender
ref TStringArray m_CharGenderList = new TStringArray
ref TStringArray m_CharPantsList = new TStringArray
ref TStringArray m_CharShirtList = new TStringArray
ref TStringArray m_CharShoesList = new TStringArray
ref set< intm_CleanupQueue
int m_CurrentDropProbabilityStep
array< floatm_DropProbabilityArray
int m_DropProbabilityRollsCount
float m_DropSpawnMaxDelay
float m_DropSpawnMinDelay
int m_DropSpawnsQueued
bool m_EndNow = false
bool m_Initialized
bool m_InitialSyncSent
bool m_IsRunning = false
float m_LastDropSpawnTime
Widget m_LayoutRoot
GameplayEffectsDataBleeding m_ParentMetaData
float m_SequenceDuration
float m_SequenceTick
int m_Severity
int m_SourceID
bool m_Terminating = false
float m_TimeElapsedSequence
float m_TimeElapsedTotal
int m_Type
ref array< ref Widgetm_WidgetArray
int m_WidgetSetIdentifier

Detailed Description

Definition at line 8 of file jsonapistruct.c.

Constructor & Destructor Documentation

◆ JsonApiStruct()

void JsonApiStruct ( )
inlineprivate

Definition at line 11 of file jsonapistruct.c.

Referenced by ItemObject(), Push(), and StoreObject().

◆ ~JsonApiStruct()

void ~JsonApiStruct ( )
inlineprivate

Definition at line 15 of file jsonapistruct.c.

Member Function Documentation

◆ AsString()

proto native string AsString ( )
private

Get packed JSON as string (!only if you called Pack() first, it may return null).

◆ EndArray()

proto native void EndArray ( )
private

End array at hierarchy - !

!! Be cautious and doublecheck results when using this !!!

◆ EndObject()

proto native void EndObject ( )
private

End object at hierarchy - !

!! Be cautious and doublecheck results when using this !!!

◆ ExpandFromRAW()

proto native void ExpandFromRAW ( string data)
private

Start object unpacking from RAW string data.

◆ InstantPack()

proto native void InstantPack ( )
private

Start object packing now - for use at main thread only!

◆ ItemBoolean()

proto native void ItemBoolean ( bool value)
private

Add unnamed/ array boolean value.

◆ ItemFloat()

proto native void ItemFloat ( float value)
private

Add unnamed/ array float value.

◆ ItemInteger()

proto native void ItemInteger ( int value)
private

Add unnamed/ array integer value.

◆ ItemObject()

proto native void ItemObject ( JsonApiStruct obj)
private

Add scripted unnamed/ array object.

References JsonApiStruct().

◆ ItemString()

proto native void ItemString ( string value)
private

Add unnamed/ array string value.

◆ ItemVector()

proto native void ItemVector ( vector value)
private

Add unnamed/ array vector value.

◆ LoadFromFile()

proto native bool LoadFromFile ( string FileName)
private

Load JSON from file and Expand.

◆ OnBoolean()

void OnBoolean ( string name,
bool value )
inlineprivate

Called when parsing boolean value.

Definition at line 84 of file jsonapistruct.c.

References name, and Print().

◆ OnBufferReady()

void OnBufferReady ( )
inlineprivate

Verification event after successfull JSON packing.

Definition at line 37 of file jsonapistruct.c.

◆ OnEndArray()

void OnEndArray ( int itemCount)
inlineprivate

Called when array end, returns count of items.

Definition at line 116 of file jsonapistruct.c.

References Print().

◆ OnError()

void OnError ( int errorCode)
inlineprivate

Event called when pending store operation is finished - callback from JsonApiHandle before handle release.

Definition at line 52 of file jsonapistruct.c.

◆ OnExpand()

void OnExpand ( )
inlineprivate

Event when expand (unpack) process starts.

Definition at line 22 of file jsonapistruct.c.

◆ OnFloat()

void OnFloat ( string name,
float value )
inlineprivate

Called when parsing float value.

Definition at line 76 of file jsonapistruct.c.

References name, and Print().

◆ OnInteger()

void OnInteger ( string name,
int value )
inlineprivate

Called when parsing integer value.

Definition at line 68 of file jsonapistruct.c.

References name, and Print().

◆ OnItemBoolean()

void OnItemBoolean ( int index,
bool value )
inlineprivate

Called when parsing boolean value.

Definition at line 148 of file jsonapistruct.c.

References Print().

◆ OnItemFloat()

void OnItemFloat ( int index,
float value )
inlineprivate

Called when parsing float value.

Definition at line 140 of file jsonapistruct.c.

References Print().

◆ OnItemInteger()

void OnItemInteger ( int index,
int value )
inlineprivate

Called when parsing integer value.

Definition at line 132 of file jsonapistruct.c.

References Print().

◆ OnItemObject()

void OnItemObject ( int index,
string name )
inlineprivate

Called when parsing object.

Definition at line 124 of file jsonapistruct.c.

References name, and Print().

◆ OnItemString()

void OnItemString ( int index,
string value )
inlineprivate

Called when parsing string value from array.

Definition at line 156 of file jsonapistruct.c.

References Print().

◆ OnItemVector()

void OnItemVector ( int index,
vector value )
inlineprivate

Called when parsing vector value from array.

Definition at line 164 of file jsonapistruct.c.

References Print().

◆ OnObject()

void OnObject ( string name)
inlineprivate

Called when parsing object.

Definition at line 60 of file jsonapistruct.c.

References name, and Print().

◆ OnPack()

void OnPack ( )
inlineprivate

Event when pack starts - you will pack your stuff here.

Definition at line 29 of file jsonapistruct.c.

References Print().

◆ OnStartArray()

void OnStartArray ( string name)
inlineprivate

Called when parsing array.

Definition at line 108 of file jsonapistruct.c.

References name, and Print().

◆ OnString()

void OnString ( string name,
string value )
inlineprivate

Called when parsing string value.

Definition at line 92 of file jsonapistruct.c.

References name, and Print().

◆ OnSuccess()

void OnSuccess ( int errorCode)
inlineprivate

Event called when pending store operation is finished - callback from JsonApiHandle before handle release.

Definition at line 44 of file jsonapistruct.c.

◆ OnVector()

void OnVector ( string name,
vector value )
inlineprivate

Called when parsing vector value.

Definition at line 100 of file jsonapistruct.c.

References name, and Print().

◆ Pack()

proto native void Pack ( )
private

Start object packing - when it can be done (when sending remote etc.).

◆ PackToFile()

proto native bool PackToFile ( string FileName)
private

Pack() and save JSON to file.

◆ Push()

proto native void Push ( JsonApiStruct obj)
private

Push object to parse (only during parse operation).

References JsonApiStruct().

◆ RegV()

proto native void RegV ( string name)
private

Register script variable for auto-feature.

References name.

◆ SaveToFile()

proto native bool SaveToFile ( string FileName)
private

Save JSON to file (only If something was loaded or recieved previously!).

◆ SetDone()

proto native void SetDone ( )
private

Call this when you've done packing or unpacking (interrupt operation).

◆ SetFail()

proto native void SetFail ( )
private

Call this when you've done packing or unpacking + want to generate error - prevent to send invalid data etc.

◆ StartArray()

proto native void StartArray ( string name)
private

Start array at hierarchy - !

!! Be cautious and doublecheck results when using this !!!

References name.

◆ StartObject()

proto native void StartObject ( string name)
private

Start object at hierarchy - !

!! Be cautious and doublecheck results when using this !!!

References name.

◆ StoreBoolean()

proto native void StoreBoolean ( string name,
bool value )
private

Add boolean value to hierarchy.

References name.

◆ StoreFloat()

proto native void StoreFloat ( string name,
float value )
private

Add float value to hierarchy.

References name.

◆ StoreInteger()

proto native void StoreInteger ( string name,
int value )
private

Add integer value to hierarchy.

References name.

◆ StoreObject()

proto native void StoreObject ( string name,
JsonApiStruct obj )
private

Add scripted object to hierarchy (calls through hierarchy).

References JsonApiStruct(), and name.

◆ StoreString()

proto native void StoreString ( string name,
string value )
private

Add string value to hierarchy.

References name.

◆ StoreVector()

proto native void StoreVector ( string name,
vector value )
private

Add vector value to hierarchy.

References name.


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