forked from Spore-Community/Spore-ModAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditorRequest.cpp
More file actions
60 lines (55 loc) · 1.16 KB
/
EditorRequest.cpp
File metadata and controls
60 lines (55 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef MODAPI_DLL_EXPORT
#include <Spore\Editors\EditorRequest.h>
#include <Spore\App\IGameModeManager.h>
namespace Editors
{
EditorRequest::EditorRequest()
: mRefCount()
, mEditorName(-1)
, mModelKey()
, mCallingGameModeID(GameModeManager.GetActiveModeID())
, mbIsFirstTimeInEditor()
, mEditableTests()
, mbSporepediaCanSwitch()
, mbDisableNameEdit()
, mbAllowSporepedia()
, mShowSaveButton()
, mShowNewButton()
, mShowExitButton(true)
, mShowPublishButton()
, mShowCancelButton(true)
, field_3C()
, field_3D(true)
, field_40()
, field_50()
, field_60()
, field_64()
, mShowPlayButton()
, field_66()
, field_68()
, field_6C()
, field_6D(true)
, field_6E(true)
, field_6F()
, mConsequenceTraits()
, field_84()
, field_88()
, field_8C()
, field_90()
, mpCollectableItems(nullptr)
, mpNext(nullptr)
{
}
EditorRequest::~EditorRequest() {}
int EditorRequest::AddRef() {
++mRefCount;
return mRefCount;
}
int EditorRequest::Release() {
--mRefCount;
if (!mRefCount) delete this;
return mRefCount;
}
auto_STATIC_METHOD(EditorRequest, bool, Submit, Args(EditorRequest* request), Args(request));
}
#endif