File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
generator/gameevent_generator Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ def render_interface(event: GameEventDef) -> str:
300300 lines .append (f"public interface { type_name } : IGameEvent<{ type_name } > {{" )
301301 lines .append ("" )
302302 # static abstract implementations required by IGameEvent<T>
303- lines .append (f" static { type_name } IGameEvent<{ type_name } >.Create() => new { type_name } Impl();" )
303+ lines .append (f" static { type_name } IGameEvent<{ type_name } >.Create(nint address ) => new { type_name } Impl(address );" )
304304 lines .append ("" )
305305 lines .append (f" static string IGameEvent<{ type_name } >.GetName() => \" { original_name } \" ;" )
306306 lines .append ("" )
@@ -410,9 +410,9 @@ def render_class(event: GameEventDef) -> str:
410410 lines .append (f"internal class { type_name } Impl : GameEvent<{ type_name } >, { type_name } " )
411411 lines .append ("{" )
412412 lines .append ("" )
413- # lines.append(f" public {type_name}Impl() : base()")
414- # lines.append(" {")
415- # lines.append(" }")
413+ lines .append (f" public { type_name } Impl(nint address ) : base(address )" )
414+ lines .append (" {" )
415+ lines .append (" }" )
416416
417417 used_prop_names : Dict [str , int ] = {}
418418 for fname , fdef in event .fields .items ():
You can’t perform that action at this time.
0 commit comments