Ejemplo n.º 1
0
        private void ExportMessageID(string outputDir)
        {
            StringContext context = new StringContext();

            context.Add(CONTEXT_SPACE_KEY, exportData.messageConfig.Space);

            ExportMessageID(outputDir, exportData.messageConfig.C2SGroup, context);
            ExportMessageID(outputDir, exportData.messageConfig.S2CGroup, context);

            context.Clear();
        }
Ejemplo n.º 2
0
        private void ExportMessageParser(string outputDir)
        {
            StringContext context = new StringContext();

            context.Add(CONTEXT_SPACE_KEY, exportData.messageConfig.Space);

            if (exportData.platformType == OutputPlatformType.All || exportData.platformType == OutputPlatformType.Client)
            {
                context.Add(CONTEXT_PLATFORM_KEY, "Client");
                ExportMessageParser(outputDir, exportData.messageConfig.C2SGroup, exportData.messageConfig.S2CGroup, context);
                context.Remove(CONTEXT_PLATFORM_KEY);
            }

            if (exportData.platformType == OutputPlatformType.All || exportData.platformType == OutputPlatformType.Server)
            {
                context.Add(CONTEXT_PLATFORM_KEY, "Server");
                ExportMessageParser(outputDir, exportData.messageConfig.S2CGroup, exportData.messageConfig.C2SGroup, context);
                context.Remove(CONTEXT_PLATFORM_KEY);
            }

            context.Clear();
        }