Fixed bool comparison overloads in pyhon client

This commit is contained in:
Marc Garcia Puig 2019-02-11 18:09:36 +01:00
parent 792cd25c75
commit a81ff1e90c
1 changed files with 27 additions and 27 deletions

View File

@ -107,18 +107,18 @@ void export_blueprint() {
.def("as_float", &cc::ActorAttribute::As<float>)
.def("as_str", &cc::ActorAttribute::As<std::string>)
.def("as_color", &cc::ActorAttribute::As<csd::Color>)
// .def("__eq__", &cc::ActorAttribute::operator==<bool>)
// .def("__eq__", &cc::ActorAttribute::operator==<int>)
// .def("__eq__", &cc::ActorAttribute::operator==<float>)
// .def("__eq__", &cc::ActorAttribute::operator==<std::string>)
// .def("__eq__", &cc::ActorAttribute::operator==<csd::Color>)
// .def("__eq__", &cc::ActorAttribute::operator==<cc::ActorAttribute>)
// .def("__ne__", &cc::ActorAttribute::operator!=<bool>)
// .def("__ne__", &cc::ActorAttribute::operator!=<int>)
// .def("__ne__", &cc::ActorAttribute::operator!=<float>)
// .def("__ne__", &cc::ActorAttribute::operator!=<std::string>)
// .def("__ne__", &cc::ActorAttribute::operator!=<csd::Color>)
// .def("__ne__", &cc::ActorAttribute::operator!=<cc::ActorAttribute>)
.def("__eq__", &cc::ActorAttributeValueAccess::operator==<bool>)
.def("__eq__", &cc::ActorAttributeValueAccess::operator==<int>)
.def("__eq__", &cc::ActorAttributeValueAccess::operator==<float>)
.def("__eq__", &cc::ActorAttributeValueAccess::operator==<std::string>)
.def("__eq__", &cc::ActorAttributeValueAccess::operator==<csd::Color>)
.def("__eq__", &cc::ActorAttributeValueAccess::operator==<cc::ActorAttribute>)
.def("__ne__", &cc::ActorAttributeValueAccess::operator!=<bool>)
.def("__ne__", &cc::ActorAttributeValueAccess::operator!=<int>)
.def("__ne__", &cc::ActorAttributeValueAccess::operator!=<float>)
.def("__ne__", &cc::ActorAttributeValueAccess::operator!=<std::string>)
.def("__ne__", &cc::ActorAttributeValueAccess::operator!=<csd::Color>)
.def("__ne__", &cc::ActorAttributeValueAccess::operator!=<cc::ActorAttribute>)
.def("__nonzero__", &cc::ActorAttribute::As<bool>)
.def("__bool__", &cc::ActorAttribute::As<bool>)
.def("__int__", &cc::ActorAttribute::As<int>)