(self)
| 18 | self.time = data['time'] |
| 19 | |
| 20 | def serialize(self): |
| 21 | obj = dict() |
| 22 | |
| 23 | if self.spawnpoint_id != None: |
| 24 | obj['spawnpoint_id'] = self.spawnpoint_id |
| 25 | obj['latitude'] = self.position[0] |
| 26 | obj['longitude'] = self.position[1] |
| 27 | obj['time'] = self.time |
| 28 | |
| 29 | return obj |
| 30 | |
| 31 | class Spawncluster(object): |
| 32 | def __init__(self, spawnpoint): |