Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
workbench.c
Go to the documentation of this file.
1#ifdef WORKBENCH
2
3typedef func WorkbenchSearchResourcesCallback;
4void WorkbenchSearchResourcesCallback(ResourceName resName, string filePath = "");
5
6typedef int DateTimeUtcAsInt;
7class DateTimeUtcAsInt
8{
9 int GetSecond()
10 {
11 return value & 0x3f;
12 }
13
14 int GetMinute()
15 {
16 return (value >> 6) & 0x3f;
17 }
18
19 int GetHour()
20 {
21 return (value >> 12) & 0x1f;
22 }
23
24 int GetDay()
25 {
26 return (value >> 17) & 0x1f;
27 }
28
29 int GetMonth()
30 {
31 return (value >> 22) & 0xf;
32 }
33
34 int GetYear()
35 {
36 return ((value >> 26) & 0x3f) + 2000;
37 }
38}
39
41{
42 string m_Label;
43 bool m_Focused;
44
45 void ButtonAttribute(string label = "ScriptButton", bool focused = false)
46 {
47 m_Label = label;
48 m_Focused = focused;
49 }
50}
51
62{
63 string m_Name;
64 string m_Icon;
65 string m_Shortcut;
66 string m_Description;
67 string m_Category;
68 int m_AwesomeFontCode;
69
70 ref array<string> m_WBModules;
71 ref array<string> m_ResourceTypes;
72
73 void WorkbenchPluginAttribute(string name, string description = "", string shortcut = "", string icon = "", array<string> wbModules = null, string category = "", int awesomeFontCode = 0, array<string> resourceTypes = null)
74 {
75 m_Name = name;
76 m_Icon = icon;
77 m_Shortcut = shortcut;
78 m_Description = description;
79 m_WBModules = wbModules;
80 m_Category = category;
81 m_AwesomeFontCode = awesomeFontCode;
82 m_ResourceTypes = resourceTypes;
83 }
84}
85
87class WorkbenchToolAttribute: WorkbenchPluginAttribute
88{
89}
90
91#endif
GenerateFlowMaps WorkbenchPlugin WorkbenchPluginAttribute("Regenerate river flow-maps", "Generate and save/overwrite river flow-maps", "", "", {"WorldEditor"}, "", 0xf773)
Definition FlowmapTool.c:59
CinematicTrackAttribute m_Name
class WorkbenchDialog_AbortRetryIgnore ButtonAttribute("OK", true)
proto external int GetYear()
proto external int GetDay()
proto external int GetMonth()