Skip to content

Commit 80b979e

Browse files
committed
abc classing for required methods in sub-classes
1 parent a293c50 commit 80b979e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

display_object.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
"""
55

66
import struct
7+
import abc
78
from helpers import OFFSETS
89
from memory_helper import ReadMemory
910

1011

11-
class DisplayObject:
12+
class DisplayObject(metaclass=abc.ABCMeta):
1213
"""
1314
Class responsible for the base functionality of pulling data from
1415
our memory objects. These are typically identical regardless of the actor
@@ -64,5 +65,8 @@ def _coord_builder(self, root_comp_ptr: int, offset: int) -> dict:
6465
"z": unpacked[2] / 100}
6566
return coordinate_dict
6667

68+
@abc.abstractmethod
6769
def update(self, my_coords):
68-
pass
70+
"""
71+
72+
"""

0 commit comments

Comments
 (0)