Improved DataManager string Get and Set methods.
- The Get method no longer assumes unknown drefs are floats. - The Get method now properly accounts for the fact that the dref data type is a bitflag. - Binary drefs are now properly read and packed into `values`. - This is a rather inefficient process, as it quadruples the number of bytes we have to send out. Should look into better ways to do this in the future. - The Set method now handles data types correctly. - The Set method now supports binary datarefs. - Improved logging of edge cases. - Added a check to warn about setting read-only datarefs if verbose logging is enabled.
This commit is contained in:
@@ -137,10 +137,10 @@ namespace XPC
|
||||
/// Marshals data between the plugin and X-Plane.
|
||||
///
|
||||
/// \author Jason Watkins
|
||||
/// \version 1.0
|
||||
/// \since 1.0
|
||||
/// \version 1.0.1
|
||||
/// \since 1.0.0
|
||||
/// \date Intial Version: 2015-04-13
|
||||
/// \date Last Updated: 2015-04-13
|
||||
/// \date Last Updated: 2015-04-29
|
||||
class DataManager
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user