self.thing_types = {}
self.sessions = {}
self.faces = {}
+ self.hats = {}
self.maps = {}
self.map_controls = {}
self.map_control_passwords = {}
c_id)
if hasattr(t, 'name'):
self.io.send('THING_NAME %s %s' % (t.id_, quote(t.name)), c_id)
+ if t.type_ == 'Player' and t.name in self.hats:
+ hat = self.hats[t.name]
+ self.io.send('THING_HAT %s %s' % (t.id_, quote(hat)), c_id)
face = self.get_face(t)
if face:
self.io.send('THING_FACE %s %s' % (t.id_, quote(face)), c_id)
for name in self.faces:
write(f, 'GOD_PLAYER_FACE %s %s' % (quote(name),
quote(self.faces[name])))
+ for name in self.hats:
+ write(f, 'GOD_PLAYER_HAT %s %s' % (quote(name),
+ quote(self.hats[name])))
for t in [t for t in self.things if not t.type_ == 'Player']:
write(f, 'THING %s %s %s %s' % (t.position[0],
t.position[1], t.type_, t.id_))