コード例 #1
0
        static void CreateAdventureProxy()
        {
            var file =
                new FileInfo(
                    @"..\..\..\..\..\client\Package\Adventure.Client.Logic\Adventure.Client.Logic.csproj");

            Console.WriteLine(file.FullName);
            Console.WriteLine(file.Exists);

            ServerLogicProtocolGeneration.CreateCode(@"..\..\..\..\Adventure.Server.Interface\bin\Debug\Adventure.Server.Interface.dll",
                                                     @"..\..\..\..\Adventure.Server.Protocol\ServerLogicProtocol.cs");

            ClientProxyProtocolGeneration.CreateCode(@"..\..\..\..\Adventure.Server.Interface\bin\Debug\Adventure.Server.Interface.dll",
                                                     @"..\..\..\..\Adventure.Server.Protocol\ClientProxyProtocol.cs");


            ClientLogicProtocolGeneration.CreateCode(
                @"..\..\..\..\Adventure.Server.Interface\bin\Debug\Adventure.Server.Interface.dll",
                @"..\..\..\..\..\client\Package\Adventure.Client.Logic\",
                "Adventure.Client.Logic");


            ServerProxyProtocolGeneration.CreateCode(
                @"..\..\..\..\Adventure.Server.Interface\bin\Debug\Adventure.Server.Interface.dll",
                @"..\..\..\..\..\client\Package\Adventure.Client.Logic\",
                "Adventure.Client.Logic");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: indangerofcollapsing/wow
        static void CreateServerCode()
        {
            ServerLogicProtocolGeneration.CreateCode(@"..\..\..\..\TradeAge\TradeAge.Server.Interface\bin\Debug\TradeAge.Server.Interface.dll",
                                                     @"..\..\..\..\TradeAge\Server\TradeAge.Server.Protocol\ServerLogicProtocol.cs");

            ClientProxyProtocolGeneration.CreateCode(@"..\..\..\..\TradeAge\TradeAge.Server.Interface\bin\Debug\TradeAge.Server.Interface.dll",
                                                     @"..\..\..\..\TradeAge\Server\TradeAge.Server.Protocol\ClientProxyProtocol.cs");
        }