Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
worldEditor.c
Go to the documentation of this file.
1
2/*class EditorWindowWidget: RenderTargetWidget
3{
4}*/
5
7{
8 proto native bool LoadWorld(string worldFilePath);
9 proto native bool SaveWorld();
10
11 proto native void SetMoveTool();
12 proto native void SetRotateTool();
13 proto native void SetScaleTool();
14
15 proto native bool Undo();
16 proto native bool Redo();
17
18 proto native void Update(float tDelta);
19 proto native void Init(notnull RenderTargetWidget mainWindow);
20 proto native void Cleanup();
21
22 proto native WorldEditorAPI GetAPI();
23}
24
25class ContainerIdPathEntry : Managed
26{
28 int Index;
29
30 void ContainerIdPathEntry(string propertyName, int index = -1)
31 {
32 PropertyName = propertyName;
33 Index = index;
34 }
35}
36
42class EditorEntityIterator
43{
44 void EditorEntityIterator(notnull WorldEditorAPI api)
45 {
46 m_pApi = api;
47 m_iCurrentIdx = 0;
48 m_iCount = m_pApi.GetEditorEntityCount();
49 }
50
52 IEntitySource GetNext()
53 {
54 while (m_iCurrentIdx < m_iCount && m_pApi.GetEditorEntity(m_iCurrentIdx).GetParent())
55 m_iCurrentIdx++;
56
57 if (m_iCurrentIdx < m_iCount)
58 return m_pApi.GetEditorEntity(m_iCurrentIdx++);
59
60 return null;
61 }
62
63 int GetCurrentIdx()
64 {
65 return m_iCurrentIdx;
66 }
67
68 private WorldEditorAPI m_pApi;
69 private int m_iCurrentIdx;
70 private int m_iCount;
71}
override void Init()
int Index
Definition worldEditor.c:28
void ContainerIdPathEntry(string propertyName, int index=-1)
Definition worldEditor.c:30
class WorldEditorIngame PropertyName
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
void Cleanup()
Cleanup component.