Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
ProfileCharacter.c
Go to the documentation of this file.
1
2
3// Array Item
4class OnlineRecord_Item extends JsonApiStruct
5{
6 string m_String;
7 float m_Float;
8
9 void OnlineRecord_Item()
10 {
11 // register variables for auto pack/ expand
12 RegV("m_String");
13 RegV("m_Float")
14 }
15
16 void Initialize( int count )
17 {
18 m_String = "something";
19 m_Float = 1 + count;
20 }
21
22 void PrintThis()
23 {
24 Print("m_String=" + m_String);
25 Print("m_Float=" + m_Float);
26 }
27};
28
29// Parent Object
30class OnlineRecord_Parent extends JsonApiStruct
31{
32 string m_Message;
33 float m_AnotherFloat;
34
35 protected ref OnlineRecord_Item m_SingleItem; // object
36
37 protected ref array<ref OnlineRecord_Item> m_aItems; // arrays of objects
38
40 {
41 // register variables for auto pack/ expand
42 RegV("m_Message");
43 RegV("m_AnotherFloat");
44 RegV("m_SingleItem");
45 RegV("m_aItems");
46 }
47
48 void Initialize( int count )
49 {
50 m_Message = "The Ring has awoken, it�s heard its master�s call.";
51 m_AnotherFloat = 256;
52
53 m_SingleItem = new OnlineRecord_Item();
54 m_SingleItem.Initialize(64);
55
56 m_aItems = new array<ref OnlineRecord_Item>();
57 for( int i = 0; i < count; i++ )
58 {
59 ref OnlineRecord_Item rn = new OnlineRecord_Item();
60 rn.Initialize(i);
61 m_aItems.Insert(rn);
62 }
63 }
64
65 void PrintThis()
66 {
67 Print(" -- MASTER OBJECT -- ");
68 Print("m_Message=" + m_Message);
69 Print("m_AnotherFloat=" + m_AnotherFloat);
70
71 m_SingleItem.PrintThis();
72
73 if( m_aItems )
74 {
75 for( int i = 0; i < m_aItems.Count(); i++ )
77 }
78
79 Print(" -- END -- ");
80 }
81
82
86 override void OnSuccess( int errorCode )
87 {
88 }
89
90};
91
base classes for filtering in server browser
void OnlineRecord_Parent()
override void OnSuccess(int errorCode)
Event called when pending store operation is finished - callback from JsonApiHandle before handle rel...
ref OnlineRecord_Item m_SingleItem
void Initialize(int count)
ref array< ref OnlineRecord_Item > m_aItems
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.