MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / serialize

Method serialize

Tools/Spawnpoint-Clustering/cluster.py:20–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
31class Spawncluster(object):
32 def __init__(self, spawnpoint):

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected