private void SendFrame(object sender, ElapsedEventArgs args) { if (Gamedata.Instance.ClinetId < 0) { return; } INetworkProtocol protocol = new ByteProtocol(); protocol.Push((byte)BattleNetworkHandler.MessageType.Frame); protocol.Push((byte)Gamedata.Instance.ClinetId); protocol.Push(movement.Direction); handler.SendMessage(protocol.OutputBytesStream()); }