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);
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();
31 proto external
bool GetCurrentFile(out
string filename);
32 proto native external
int GetCurrentLine();
37 proto external
bool GetCurrentFile(out
string filename);
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 =
"");
50 proto native
bool EndEntityAction(
string historyPointName =
"");
51 proto native
bool IsDoingEditAction();
52 proto native
bool UndoOrRedoIsRestoring();
53 proto native
bool IsModifyingData();
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);
64 proto native external
bool ModifyEntityKey(
IEntity ent,
string key,
string value);
65 proto native external
bool ModifyEntityTemplateKey(
IEntitySource tmpl,
string key,
string value);
67 proto native external
IEntity CreateEntity(
string className,
string name,
int layerId,
vector coords,
vector angles);
69 proto native external
bool DeleteEntity(
IEntity ent);
71 proto native
IEntity GetEntityUnderCursor();
73 proto native external
bool TraceWorldPos(
int x,
int y,
int traceFlags, out
vector traceStart, out
vector traceEnd, out
vector traceDir);
75 proto native
int GetSelectedEntitiesCount();
76 proto native
IEntity GetSelectedEntity(
int n = 0);
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) {}
104 void RunCommandline() {}
113 void ButtonAttribute(
string label =
"ScriptButton",
bool focused =
false)
133 string m_Description;
140 m_Shortcut = shortcut;
142 m_WBModules = wbModules;
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Super root of all classes in Enforce script.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
string m_Description
class purpose description