Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
workbench.c
Go to the documentation of this file.
1
#ifdef WORKBENCH
2
3
typedef
func
WorkbenchSearchResourcesCallback;
4
void
WorkbenchSearchResourcesCallback(
ResourceName
resName,
string
filePath =
""
);
5
6
typedef
int
DateTimeUtcAsInt;
7
class
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
40
class
ButtonAttribute
:
UniqueAttribute
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
61
class
WorkbenchPluginAttribute
:
UniqueAttribute
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
87
class
WorkbenchToolAttribute:
WorkbenchPluginAttribute
88
{
89
}
90
91
#endif
WorkbenchPluginAttribute
GenerateFlowMaps WorkbenchPlugin WorkbenchPluginAttribute("Regenerate river flow-maps", "Generate and save/overwrite river flow-maps", "", "", {"WorldEditor"}, "", 0xf773)
Definition
FlowmapTool.c:59
m_Name
CinematicTrackAttribute m_Name
func
func
Definition
SCR_AIThreatSystem.c:6
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
m_Icon
string m_Icon
Definition
SCR_WeaponInfo_MultiWeaponTurret.c:956
ButtonAttribute
class WorkbenchDialog_AbortRetryIgnore ButtonAttribute("OK", true)
Definition
WorkbenchDialogs.c:30
ResourceName
Definition
ResourceName.c:13
UniqueAttribute
Definition
UniqueAttribute.c:32
GetYear
proto external int GetYear()
GetDay
proto external int GetDay()
GetMonth
proto external int GetMonth()
scripts
GameLib
workbench
workbench.c
Generated by
1.17.0