Fixed bool comparison overloads in pyhon client
This commit is contained in:
parent
792cd25c75
commit
a81ff1e90c
|
@ -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>)
|
||||
|
|
Loading…
Reference in New Issue