2024-12-21 14:30:07 +01:00

23 lines
472 B
Python

class Thing:
allThings = set()
def __init__(self):
self.networkId = None
self.id = None
self.type = None
self.modelUrl = None
Thing.Add(self)
def Update(self, currentTime):
pass
@staticmethod
def Add(thing):
thing.id = len(Thing.allThings)
Thing.allThings.add(thing)
def UpdateAll(currentTime):
for thing in Thing.allThings:
thing.Update(currentTime)