コード例 #1
0
ファイル: main.cs プロジェクト: OneKim/GameServer
        static void Main(string[] args)
        {
            Console.WriteLine("* packet maker run!!! ");
            ClassMakePacket serverClass = new ClassMakePacket(excelPath_, "PacketClass");

            serverClass.make(dataSheet_, serverProjectPath_ + "\\PacketClass.h");

            HeaderMakePacket serverHeader = new HeaderMakePacket(excelPath_, "PacketHeader");

            serverHeader.make(dataSheet_, serverProjectPath_ + "\\PacketHeader.h");

            FactoryMakePacket serverFactory = new FactoryMakePacket(excelPath_, "PacketFactory");

            serverFactory.make(dataSheet_, serverProjectPath_ + "\\PacketFactory.h");

            HeaderMakePacket clientHeader = new HeaderMakePacket(excelPath_, "clientPacketHeader");

            clientHeader.make(dataSheet_, clientProjectPath_ + "\\PacketHeader.cs");

            ClientClassMakePacket clientClass = new ClientClassMakePacket(excelPath_, "clientPacketClass");

            clientClass.make(dataSheet_, clientProjectPath_ + "\\PacketClass.cs");

            FactoryMakePacket clientFactory = new FactoryMakePacket(excelPath_, "clientPacketFactory");

            clientFactory.make(dataSheet_, clientProjectPath_ + "\\PacketFactory.cs");
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("* packet maker run!!! ");

            //------server
            //서버 패킷 클래스
            ClassMakePacket classPacket = new ClassMakePacket(excelPath, "packetClass");

            classPacket.Make(dataSheet, serverPath + "\\PacketClass.h");

            //서버 헤더
            HeaderMakePacket ServerHeader = new HeaderMakePacket(excelPath, "packetHeader");

            ServerHeader.Make(dataSheet, serverPath + "\\PacketHeader.h");

            //서버 팩토리 클래스
            FactoryMakePacket FactoryClass = new FactoryMakePacket(excelPath, "packetFactory");

            FactoryClass.Make(dataSheet, serverPath + "\\PacketFactory.h");


            //------clinet
            //클라이언트 패킷 클래스
            ClientMakePacket clientMakePacket = new ClientMakePacket(excelPath, "clientPacketClass");

            clientMakePacket.Make(dataSheet, clientPath + "\\CPacketClass.cs");

            //클라이언트 헤더
            HeaderMakePacket clientHeader = new HeaderMakePacket(excelPath, "clientPacketHeader");

            clientHeader.Make(dataSheet, clientPath + "\\CPacketHeader.cs");

            //클라 팩토리 클래스
            FactoryMakePacket clientFactory = new FactoryMakePacket(excelPath, "clientPacketFactory");

            clientFactory.Make(dataSheet, clientPath + "\\CPacketFactory.cs");
        }