Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
workbenchapi.c
Go to the documentation of this file.
1
typedef
int
[]
WBModuleDef
;
2
typedef
int
[]
ScriptEditor
;
3
typedef
int
[]
ResourceBrowser
;
4
typedef
int
[]
WorldEditor
;
5
6
class
Workbench
7
{
8
static
proto native
WBModuleDef
GetModule(
string
type);
9
static
proto native
bool
OpenModule(
string
type);
10
static
proto native
bool
CloseModule(
string
type);
11
static
proto native
void
Dialog(
string
caption,
string
text);
12
static
proto
int
ScriptDialog(
string
caption,
string
text,
Class
data);
13
static
proto
bool
SearchResources(
string
filter,
func
callback);
14
static
proto native
int
RunCmd(
string
command,
bool
wait =
false
);
15
static
proto
void
GetCwd(out
string
currentDir);
16
static
proto
bool
GetAbsolutePath(
string
relativePath, out
string
absPath);
17
};
18
19
class
WBModuleDef
20
{
21
proto native external
bool
SetOpenedResource(
string
filename);
22
proto native external
int
GetNumContainers();
23
proto native external
BaseContainer
GetContainer(
int
index = 0);
24
proto external
bool
GetCmdLine(
string
name
, out
string
value);
25
proto native external
bool
Save();
26
proto native external
bool
Close();
27
};
28
29
class
ScriptEditor
:
WBModuleDef
30
{
31
proto external
bool
GetCurrentFile(out
string
filename);
32
proto native external
int
GetCurrentLine();
33
};
34
35
class
ResourceBrowser
:
WBModuleDef
36
{
37
proto external
bool
GetCurrentFile(out
string
filename);
38
};
39
40
class
WorldEditor
:
WBModuleDef
41
{
42
proto native external
WorldEditorAPI
GetAPI();
43
};
44
45
class
WorldEditorAPI
46
{
47
proto native
bool
BeginTerrainAction(
string
historyPointName =
""
,
string
historyPointIcon =
""
);
48
proto native
void
EndTerrainAction(
string
historyPointName =
""
);
49
proto native
bool
BeginEntityAction(
string
historyPointName =
""
,
string
historyPointIcon =
""
);
//begin of logical edit action
50
proto native
bool
EndEntityAction(
string
historyPointName =
""
);
//end of edit action
51
proto native
bool
IsDoingEditAction();
//true, if code stay betwen BeginEntityAction() and EndEntityAction()
52
proto native
bool
UndoOrRedoIsRestoring();
//true, if editor is restoring undo or redo state
53
proto native
bool
IsModifyingData();
54
proto native
IEntity
SourceToEntity(
IEntitySource
entSrc);
55
proto native
IEntitySource
EntityToSource(
IEntity
ent);
56
proto native
IEntitySource
FindEntityByName(
string
name
);
57
58
proto native external
void
SetEntitySelection(
IEntity
ent);
59
proto native external
void
AddToEntitySelection(
IEntity
ent);
60
proto native
void
ClearEntitySelection();
61
proto native
void
RemoveFromEntitySelection(
IEntity
ent);
62
proto native
void
SetPropertySelection(
string
id
);
63
64
proto native external
bool
ModifyEntityKey(
IEntity
ent,
string
key,
string
value);
65
proto native external
bool
ModifyEntityTemplateKey(
IEntitySource
tmpl,
string
key,
string
value);
66
67
proto native external
IEntity
CreateEntity(
string
className,
string
name
,
int
layerId,
vector
coords,
vector
angles);
68
proto native external
IEntity
CreateClonedEntity(
IEntity
ent,
string
name
);
69
proto native external
bool
DeleteEntity(
IEntity
ent);
70
proto native
bool
DeleteEntities(out
array<IEntity>
ents);
71
proto native
IEntity
GetEntityUnderCursor();
72
73
proto native external
bool
TraceWorldPos(
int
x
,
int
y
,
int
traceFlags, out
vector
traceStart, out
vector
traceEnd, out
vector
traceDir);
74
75
proto native
int
GetSelectedEntitiesCount();
76
proto native
IEntity
GetSelectedEntity(
int
n = 0);
77
78
private
void
WorldEditorAPI
() {}
79
private
void
~
WorldEditorAPI
() {}
80
};
81
82
class
WorldEditorTool
83
{
85
WorldEditorAPI
m_API;
86
87
void
OnKeyPressEvent(
int
key) {}
88
void
OnKeyReleaseEvent(
int
key) {}
89
void
OnEnterEvent() {}
90
void
OnLeaveEvent() {}
91
void
OnMouseMoveEvent(
float
x
,
float
y
) {}
92
void
OnMouseDoubleClickEvent(
float
x
,
float
y
) {}
93
void
OnMousePressEvent(
float
x
,
float
y
) {}
94
void
OnMouseReleaseEvent(
float
x
,
float
y
) {}
95
void
OnWheelEvent(
int
delta) {}
96
97
private
void
WorldEditorTool
() {}
98
private
void
~
WorldEditorTool
() {}
99
};
100
101
class
WorkbenchPlugin
102
{
103
void
Run() {}
104
void
RunCommandline() {}
105
void
Configure() {}
106
};
107
108
class
ButtonAttribute
109
{
110
string
m_Label;
111
bool
m_Focused;
112
113
void
ButtonAttribute
(
string
label =
"ScriptButton"
,
bool
focused =
false
)
114
{
115
m_Label = label;
116
m_Focused = focused;
117
}
118
};
119
128
class
WorkbenchPluginAttribute
129
{
130
string
m_Name;
131
string
m_Icon;
132
string
m_Shortcut;
133
string
m_Description;
134
ref
array<string>
m_WBModules;
135
136
void
WorkbenchPluginAttribute
(
string
name
,
string
description =
""
,
string
shortcut =
""
,
string
icon =
""
,
array<string>
wbModules =
null
)
137
{
138
m_Name
=
name
;
139
m_Icon = icon;
140
m_Shortcut = shortcut;
141
m_Description
= description;
142
m_WBModules = wbModules;
143
}
144
};
145
149
class
WorkbenchToolAttribute
:
WorkbenchPluginAttribute
150
{
151
}
IEntitySource
Definition:
enentity.c:15
ButtonAttribute
Definition:
workbenchapi.c:108
m_Name
string m_Name
Definition:
bioslobbyservice.c:35
y
Icon y
WorldEditor
int[] WorldEditor
Definition:
workbenchapi.c:4
WorldEditor
Definition:
workbenchapi.c:40
func
Definition:
enconvert.c:10
ScriptEditor
Definition:
workbenchapi.c:29
WBModuleDef
int[] WBModuleDef
Definition:
workbenchapi.c:1
Workbench
Definition:
workbenchapi.c:6
IEntity
Definition:
enentity.c:164
WBModuleDef
Definition:
workbenchapi.c:19
m_Description
string m_Description
class purpose description
Definition:
enentity.c:845
WorkbenchToolAttribute
Definition:
workbenchapi.c:149
WorkbenchPlugin
Definition:
workbenchapi.c:101
vector
Definition:
enconvert.c:105
WorldEditorTool
Definition:
workbenchapi.c:82
array
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition:
isboxcollidinggeometryproxyclasses.c:27
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
x
Icon x
ResourceBrowser
Definition:
workbenchapi.c:35
WorkbenchPluginAttribute
Definition:
workbenchapi.c:128
WorldEditorAPI
Definition:
workbenchapi.c:45
ResourceBrowser
int[] ResourceBrowser
Definition:
workbenchapi.c:3
Class
Super root of all classes in Enforce script.
Definition:
enscript.c:10
ScriptEditor
int[] ScriptEditor
Definition:
workbenchapi.c:2
BaseContainer
Definition:
enentity.c:5
DAYZ
scripts_v1.24.157551
scripts
core
workbenchapi.c
Generated by
1.8.17