コード例 #1
0
        public override bool    AggregateInto(Packet pendingPacket)
        {
            ClientModuleSetUseCompressionPacket packet = pendingPacket as ClientModuleSetUseCompressionPacket;

            if (packet != null)
            {
                packet.useCompression = this.useCompression;
                return(true);
            }

            return(false);
        }
コード例 #2
0
ファイル: ScreenshotModule.cs プロジェクト: Hengle/clapotis
        private void    SetUseCompression(Client client, Packet _packet)
        {
            ClientModuleSetUseCompressionPacket packet = _packet as ClientModuleSetUseCompressionPacket;

            this.useCompression = packet.useCompression;
        }