Esempio n. 1
0
 def add_player(self, role_type, player):
     method = concept_proto.Thing.Req()
     add_player_req = concept_proto.Relation.AddPlayer.Req()
     add_player_req.role_type.CopyFrom(concept_proto_builder.type_(role_type))
     add_player_req.player.CopyFrom(concept_proto_builder.thing(player))
     method.relation_add_player_req.CopyFrom(add_player_req)
     self._execute(method)
Esempio n. 2
0
 def remove_player(self, role_type, player):
     method = concept_proto.Thing.Req()
     remove_player_req = concept_proto.Relation.RemovePlayer.Req()
     remove_player_req.role_type.CopyFrom(concept_proto_builder.type_(role_type))
     remove_player_req.player.CopyFrom(concept_proto_builder.thing(player))
     method.relation_remove_player_req.CopyFrom(remove_player_req)
     self._execute(method)
Esempio n. 3
0
 def unset_has(self, attribute):
     method = concept_proto.Thing.Req()
     unset_has_req = concept_proto.Thing.UnsetHas.Req()
     unset_has_req.attribute.CopyFrom(
         concept_proto_builder.thing(attribute))
     method.thing_unset_has_req.CopyFrom(unset_has_req)
     self._execute(method)