public void EmitPublicEventCtorStatements(CodeBuilder b) { for (var i = 1; i <= ManagedArguments.Count() - 1; i++) { if (ManagedArguments[i].ArgumentType.IsIn) { ManagedArguments[i].EmitPublicEventCtorStatements(b); } } }
public void EmitPostPublicEventHandlerCallStatements(CodeBuilder b) { for (var i = 1; i <= ManagedArguments.Count() - 1; i++) { ManagedArguments[i].EmitPostPublicRaiseEventStatements(b); if (ManagedArguments[i].TypeIsRefCounted) { b.AppendLine("if(e.m_{0}_wrapped == null) CfxApi.cfx_release(e.m_{0});", ManagedArguments[i].VarName); } } EmitPostPublicEventHandlerReturnValueStatements(b); }