Commit MetaInfo

Revisione23423af0d9452975c7102ca368c71f8a71df2ff (tree)
Time2009-11-04 03:38:45
AuthorFace
CommiterFace

Log Message

Added system time, step, acceleration and pause functions.

Change Summary

Incremental Difference

diff -r 3f3c765b0c0e -r e23423af0d94 Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/OAPI.cpp
--- a/Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/OAPI.cpp Mon Nov 17 21:24:49 2008 +0100
+++ b/Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/OAPI.cpp Tue Nov 03 19:38:45 2009 +0100
@@ -41,6 +41,16 @@
4141 void OAPI::Blt(System::IntPtr target, System::IntPtr source, int targetX, int targetY, int sourceX, int sourceY, int width, int height, unsigned int colorKey){oapiBlt((SURFHANDLE)(void *)target, (SURFHANDLE)(void *)source, targetX, targetY, sourceX, sourceY, width, height, colorKey);}
4242 void OAPI::Blt(System::IntPtr target, System::IntPtr source, int targetX, int targetY, int sourceX, int sourceY, int width, int height){oapiBlt((SURFHANDLE)(void *)target, (SURFHANDLE)(void *)source, targetX, targetY, sourceX, sourceY, width, height);}
4343 double OAPI::SimTime::get(){return oapiGetSimTime();}
44+ double OAPI::SimStep::get(){return oapiGetSimStep();}
45+ double OAPI::SysTime::get(){return oapiGetSysTime();}
46+ double OAPI::SysStep::get(){return oapiGetSysStep();}
47+ double OAPI::SimMJD::get(){return oapiGetSimMJD();}
48+ double OAPI::SysMJD::get(){return oapiGetSysMJD();}
49+ double OAPI::FrameRate::get(){return oapiGetFrameRate();}
50+ double OAPI::TimeAcceleration::get(){return oapiGetTimeAcceleration();}
51+ void OAPI::TimeAcceleration::set(double value){oapiSetTimeAcceleration(value);}
52+ bool OAPI::Pause::get(){return oapiGetPause();}
53+ void OAPI::Pause::set(bool value){oapiSetPause(value);}
4454 Interfaces::CockpitMode OAPI::CockpitMode::get(){return (Interfaces::CockpitMode)oapiCockpitMode();}
4555 }
4656 }
\ No newline at end of file
diff -r 3f3c765b0c0e -r e23423af0d94 Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/OAPI.h
--- a/Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/OAPI.h Mon Nov 17 21:24:49 2008 +0100
+++ b/Orbitersdk/samples/Orbiter.NET/Orbiter.Wrapper/OAPI.h Tue Nov 03 19:38:45 2009 +0100
@@ -25,6 +25,14 @@
2525 static void Blt (IntPtr target, IntPtr source, int targetX, int targetY, int sourceX, int sourceY, int width, int height, unsigned int colorKey);
2626 static void Blt (IntPtr target, IntPtr source, int targetX, int targetY, int sourceX, int sourceY, int width, int height);
2727 static property double SimTime {double get(void);};
28+ static property double SimStep {double get(void);};
29+ static property double SysTime {double get(void);};
30+ static property double SysStep {double get(void);};
31+ static property double SimMJD {double get(void);};
32+ static property double SysMJD {double get(void);};
33+ static property double FrameRate {double get(void);};
34+ static property double TimeAcceleration {double get(void); void set(double);};
35+ static property bool Pause {bool get(void); void set(bool);};
2836 static property Interfaces::CockpitMode CockpitMode {Interfaces::CockpitMode get(void);};
2937 };
3038 }
Show on old repository browser