@@ -9,11 +9,6 @@ namespace FPSProfiler::Configs
9
9
{
10
10
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
11
11
{
12
- if (serializeContext->FindClassData (azrtti_typeid<FileSaveSettings>())) // Prevent duplicate registration
13
- {
14
- return ;
15
- }
16
-
17
12
serializeContext->Class <FileSaveSettings>()
18
13
->Version (0 )
19
14
->Field (" m_OutputFilename" , &FileSaveSettings::m_OutputFilename)
@@ -86,11 +81,6 @@ namespace FPSProfiler::Configs
86
81
{
87
82
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
88
83
{
89
- if (serializeContext->FindClassData (azrtti_typeid<RecordSettings>())) // Prevent duplicate registration
90
- {
91
- return ;
92
- }
93
-
94
84
serializeContext->Class <RecordSettings>()
95
85
->Version (0 )
96
86
->Field (" m_recordType" , &RecordSettings::m_recordType)
@@ -152,11 +142,6 @@ namespace FPSProfiler::Configs
152
142
153
143
if (auto behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context))
154
144
{
155
- if (behaviorContext->m_classes .contains (" RecordSettings" ))
156
- {
157
- return ;
158
- }
159
-
160
145
behaviorContext->Class <RecordSettings>(" RecordSettings" )
161
146
->Attribute (AZ::Script::Attributes::Category, " FPSProfiler" )
162
147
->Constructor <>()
@@ -171,11 +156,6 @@ namespace FPSProfiler::Configs
171
156
{
172
157
if (auto * serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
173
158
{
174
- if (serializeContext->FindClassData (azrtti_typeid<PrecisionSettings>())) // Prevent duplicate registration
175
- {
176
- return ;
177
- }
178
-
179
159
serializeContext->Class <PrecisionSettings>()
180
160
->Version (0 )
181
161
->Field (" m_NearZeroPrecision" , &PrecisionSettings::m_NearZeroPrecision)
@@ -249,11 +229,6 @@ namespace FPSProfiler::Configs
249
229
{
250
230
if (auto * serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
251
231
{
252
- if (serializeContext->FindClassData (azrtti_typeid<DebugSettings>())) // Prevent duplicate registration
253
- {
254
- return ;
255
- }
256
-
257
232
serializeContext->Class <DebugSettings>()
258
233
->Version (0 )
259
234
->Field (" m_PrintDebugInfo" , &DebugSettings::m_PrintDebugInfo)
0 commit comments