game: core: recreate classes see other paddle
This commit is contained in:
@ -7,4 +7,13 @@ class Position:
|
||||
self.position = position
|
||||
|
||||
def copy(self):
|
||||
return Position(self.position, self.time)
|
||||
return Position(self.position, self.time)
|
||||
|
||||
def to_dict(self):
|
||||
|
||||
data: dict = {
|
||||
"position": self.position,
|
||||
"time": self.time,
|
||||
}
|
||||
|
||||
return data
|
Reference in New Issue
Block a user