Changeset 83:f31da5d1718d in xplra for src


Ignore:
Timestamp:
05/12/13 05:17:35 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added a client call to save the current situation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/client/python/xplra.py

    r70 r83  
    4949## Protocol command: reload all plugins
    5050COMMAND_RELOAD_PLUGINS = 0x32
     51
     52## Protocol command: save the current situation into a file
     53COMMAND_SAVE_SITUATION = 0x33
    5154
    5255## Protocol command: show a message to the pilot
     
    351354        After this, this connection becomes invalid."""
    352355        self._writeU8(COMMAND_RELOAD_PLUGINS)
     356        self._flush()
     357        self._checkResult();
     358
     359    def saveSituation(self, path):
     360        """Save the current situation into the given path."""
     361        self._writeU8(COMMAND_SAVE_SITUATION)
     362        self._writeString(path)
    353363        self._flush()
    354364        self._checkResult();
Note: See TracChangeset for help on using the changeset viewer.