Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
AnimExportProfiles.c
Go to the documentation of this file.
1
class
AnimExportProfilesRequest:
JsonApiStruct
2
{
3
string
ExportProfileAbsPath;
4
5
void
AnimExportProfilesRequest()
6
{
7
RegV(
"ExportProfileAbsPath"
);
8
}
9
}
10
11
class
AnimExportProfilesResponse:
JsonApiStruct
12
{
13
ref TxaExporter
m_txaExporter
;
14
15
override
void
OnPack
()
16
{
17
StartArray(
"ProfileNames"
);
18
int
numProfiles =
m_txaExporter
.GetNumProfiles();
19
for
(
int
i = 0; i < numProfiles; i++)
20
{
21
string
pn =
m_txaExporter
.GetProfileName(i);
22
ItemString(pn);
23
}
24
EndArray();
25
}
26
}
27
28
29
class
AnimExportProfiles
: NetApiHandler
30
{
31
override
JsonApiStruct
GetRequest
()
32
{
33
return
new
AnimExportProfilesRequest
();
34
}
35
36
override
JsonApiStruct
GetResponse(
JsonApiStruct
request)
37
{
38
AnimExportProfilesRequest
req =
AnimExportProfilesRequest
.Cast(request);
39
AnimExportProfilesResponse response =
new
AnimExportProfilesResponse();
40
41
response.m_txaExporter =
new
TxaExporter();
42
response.m_txaExporter.LoadProfiles(req.ExportProfileAbsPath);
43
return
response;
44
}
45
46
}
47
48
49
class
AnimExportProfileChannelsRequest
:
JsonApiStruct
50
{
51
string
ProfileName
;
52
53
void
AnimExportProfileChannelsRequest
()
54
{
55
RegV(
"ProfileName"
);
56
}
57
}
58
59
class
AnimExportProfileChannelsResponse
:
JsonApiStruct
60
{
61
ref TxaExporter m_txaExporter;
62
int
m_profileIdx;
63
64
override
void
OnPack
()
65
{
66
int
nChannels = 0;
67
if
(m_profileIdx != -1)
68
{
69
nChannels = m_txaExporter.GetProfileChannelCount(m_profileIdx)
70
}
71
72
StartObject(
"Channels"
);
73
74
for
(
int
channelIdx = 0; channelIdx < nChannels; channelIdx++)
75
{
76
string
name = m_txaExporter.GetProfileChannelName(m_profileIdx, channelIdx);
77
StartObject(name);
78
string
genFn = m_txaExporter.GetProfileChannelGenFn(m_profileIdx, channelIdx);
79
if
(!genFn.IsEmpty())
80
{
81
StoreString(
"GenFn"
, genFn);
82
}
83
EndObject();
84
}
85
86
EndObject();
87
}
88
}
89
90
class
AnimExportProfileChannels : NetApiHandler
91
{
92
override
JsonApiStruct
GetRequest
()
93
{
94
return
new
AnimExportProfileChannelsRequest
();
95
}
96
97
override
JsonApiStruct
GetResponse
(
JsonApiStruct
request)
98
{
99
AnimExportProfileChannelsRequest
req =
AnimExportProfileChannelsRequest
.Cast(request);
100
AnimExportProfileChannelsResponse
response =
new
AnimExportProfileChannelsResponse
();
101
102
response.m_txaExporter =
new
TxaExporter();
103
response.m_profileIdx = response.m_txaExporter.GetProfileIndex(req.ProfileName);
104
return
response;
105
}
106
}
GetRequest
AnimExportProfileChannelsResponse JsonApiStruct GetRequest()
Definition
AnimExportProfiles.c:92
GetResponse
override JsonApiStruct GetResponse(JsonApiStruct request)
Definition
AnimExportProfiles.c:97
AnimExportProfileChannelsRequest
void AnimExportProfileChannelsRequest()
Definition
AnimExportProfiles.c:53
ProfileName
AnimExportProfiles ProfileName
m_txaExporter
AnimExportProfilesRequest m_txaExporter
Definition
AnimExportProfiles.c:93
OnPack
override void OnPack()
Definition
AnimExportProfiles.c:15
GetRequest
SCR_AICombatMoveRequestBase GetRequest()
Definition
SCR_AICombatMoveState.c:137
OnPack
override void OnPack()
Definition
SCR_ContentBrowser_AddonsSubMenu.c:1677
AnimExportProfileChannelsResponse
Definition
AnimExportProfiles.c:60
AnimExportProfiles
Definition
AnimExportProfiles.c:30
AnimExportProfilesRequest
Definition
AnimExportProfiles.c:2
JsonApiStruct
base classes for filtering in server browser
Definition
SCR_FeedbackDialogUI.c:3
scripts
WorkbenchGameCommon
EnfusionBlenderTools
AnimExportProfiles.c
Generated by
1.17.0