22
33public static class ProtoBufMessageHandler
44{
5- private static IProtoGenerateHelper ProtoGenerateHelper ;
5+ private static IProtoGenerateHelper _protoGenerateHelper ;
66
77 public static void Start ( LauncherOptions launcherOptions , ModeType modeType )
88 {
@@ -22,7 +22,7 @@ public static void Start(LauncherOptions launcherOptions, ModeType modeType)
2222 var attrs = type . GetCustomAttributes ( typeof ( ModeAttribute ) , true ) ;
2323 if ( attrs ? . Length > 0 && ( attrs [ 0 ] is ModeAttribute modeAttribute ) && modeAttribute . Mode == modeType )
2424 {
25- ProtoGenerateHelper = ( IProtoGenerateHelper ) Activator . CreateInstance ( type ) ;
25+ _protoGenerateHelper = ( IProtoGenerateHelper ) Activator . CreateInstance ( type ) ;
2626 break ;
2727 }
2828 }
@@ -38,16 +38,16 @@ public static void Start(LauncherOptions launcherOptions, ModeType modeType)
3838 {
3939 case ModeType . Server :
4040 case ModeType . Unity :
41- ProtoGenerateHelper ? . Run ( operationCodeInfo , launcherOptions . OutputPath , launcherOptions . NamespaceName ) ;
41+ _protoGenerateHelper ? . Run ( operationCodeInfo , launcherOptions . OutputPath , launcherOptions . NamespaceName ) ;
4242 break ;
4343 case ModeType . TypeScript :
44- ProtoGenerateHelper ? . Run ( operationCodeInfo , launcherOptions . OutputPath , Path . GetFileNameWithoutExtension ( file ) ) ;
44+ _protoGenerateHelper ? . Run ( operationCodeInfo , launcherOptions . OutputPath , Path . GetFileNameWithoutExtension ( file ) ) ;
4545 break ;
4646 default :
4747 throw new ArgumentOutOfRangeException ( ) ;
4848 }
4949 }
5050
51- ProtoGenerateHelper ? . Post ( messageInfoLists , launcherOptions . OutputPath ) ;
51+ _protoGenerateHelper ? . Post ( messageInfoLists , launcherOptions ) ;
5252 }
5353}
0 commit comments