-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
mocksimconnect.py
41 lines (29 loc) · 878 Bytes
/
mocksimconnect.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class MockSimconnect:
pass
def map_to_sim_event(self, value):
print('MockSimconnect::map_to_sim_event', value)
def send_event(self, event, value):
print('MockSimconnect::send_event', event, value)
class MockEvent:
def __init__(self, key):
self._key = key
def __call__(self, value=0):
print('MockEvent::__call__', self._key, value)
class MockAircraftEvents:
def __init__(self):
self.sm = MockSimconnect()
@staticmethod
def find(key):
return MockEvent(key)
class MockAircraftRequests:
def __init__(self):
self.sm = MockSimconnect()
self.list = []
@staticmethod
def get(key):
# print('MockAircraftRequests::get', key)
return 0
@staticmethod
def set(key, value):
print('MockAircraftRequests::set', key, value)
return True