Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_BasicCodeFormatterPluginExample.c
Go to the documentation of this file.
1
//
2
// Basic Code Formatter formatting example file
3
// highlight, press numpad "/" to uncomment, then format with Ctrl+Shift+K
4
//
5
6
//class abc:Managed // must warn for non-prefixed class + must space around ':'
7
//{
8
// [Attribute()]; // must remove the semicolon
9
//
10
// // must not warn about these properly-named variables
11
// protected static const ref array<ref array<int>> DEFAULT_QUICK_SLOTS = {};
12
// protected array<string> m_aValue1;
13
// protected bool m_bValue1;
14
// protected float m_fValue1;
15
// protected int m_iValue1;
16
// protected map<string, string> m_mValue1;
17
// protected vector m_vValue1;
18
// protected Widget m_wValue1;
19
// protected static bool s_bValue1;
20
// protected const bool VALUE_1;
21
//
22
// // must warn about these improperly-named variables
23
// protected static const ref array<ref array<int>> m_aValue = {};
24
// protected static const ref array<ref array<int>> s_aValue = {};
25
// protected ref array<ref array<int>> M_AVALUE = {};
26
// private array<string> m_Strings;
27
// protected Color m_cValue;
28
// protected float m_iValue2;
29
// protected Color m_jValue;
30
// protected Color m_kValue;
31
// protected Color m_lValue;
32
// protected Color m_mValue2;
33
// protected Color m_nValue;
34
// protected Color m_oValue;
35
// protected Color m_pValue;
36
// protected Color m_qValue;
37
// protected Color m_rValue;
38
// protected Color m_sValue2;
39
// protected Color m_tValue;
40
// protected Color m_uValue;
41
// protected Color m_vValue2;
42
// protected Color m_wValue2;
43
// protected Color m_xValue;
44
// protected Color m_yValue;
45
// protected Color m_zValue;
46
// protected int m_inumber;
47
// protected ScriptInvokerVoid Event_OnSomething;
48
// protected static string m_sValue3;
49
//
50
// // must fix the separator (below)
51
// //---
52
// protected void Method()
53
// { // must replace 5 spaces by one tab
54
// if(true ) return; // must reformat the if and warn about one-liner
55
// // must warn about two empty lines (below)
56
//
57
//
58
// // must remove trailing empty space (below)
59
// }
61
//};
scripts
WorkbenchGame
ScriptEditor
SCR_BasicCodeFormatterPluginExample.c
Generated by
1.17.0