feat(rcf): append client data init

This commit is contained in:
Swann Martinez
2019-04-17 15:48:20 +02:00
parent 7c354778ce
commit aaffde6e5b
3 changed files with 26 additions and 18 deletions

11
draw.py
View File

@ -179,17 +179,6 @@ class HUD(object):
except Exception as e:
print("2D EXCEPTION")
def is_object_selected(self, obj):
# TODO: function to find occurence
for k, v in self.client.property_map.items():
if v.mtype == 'clientObject':
if self.client.id != v.id:
if obj.name in v.body:
return True
return False
def draw(self):
if self.client:
# Draw clients