29. Globe progress bar

This commit is contained in:
2024-04-16 17:18:06 -04:00
parent d3deeb31a0
commit f12034ad1a
19 changed files with 193 additions and 21 deletions

View File

@ -63,10 +63,13 @@ void gen_UGasaAttributeSet()
body.append( fmt_newline );
body.append( def_pragma( txt("region UObject")));
body.append( parse_function( code(
CodeFn GetLifetimeOfReplicatedProps = parse_function( code(
void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
)));
));
body.append( GetLifetimeOfReplicatedProps );
body.append( def_pragma( txt("endregion UObject")));
String test = GetLifetimeOfReplicatedProps.to_string();
}
GasaAttributeSet = def_class( class_name, body
, type_UAttributeSet, AccessSpec::Public

View File

@ -2033,7 +2033,7 @@ void CodeFn::to_string_fwd( String& result )
}
}
if ( ast->Specs.has( ESpecifier::Pure ) )
if ( ast->Specs.has( ESpecifier::Pure ) >= 0 )
result.append( " = 0;" );
else if (ast->Body)
result.append_fmt( " = %S;", ast->Body.to_string() );

View File

@ -1161,7 +1161,7 @@ struct CodeSpecifiers
{
for ( s32 idx = 0; idx < raw()->NumEntries; idx++ )
{
if ( raw()->ArrSpecs[ raw()->NumEntries ] == spec )
if ( raw()->ArrSpecs[ idx ] == spec )
return idx;
}