;Components::UseComponent::HasUse)
.def("HasBattleUse", &Components::UseComponent::HasBattleUse)
.def("Clone", &Components::UseComponent::Clone,
&UseComponentWrap::CloneDefault,
return_value_policy())
.def("__copy__", &generic__copy__)
.def("__deepc
e_policy())
.def("__copy__", &generic__copy__)
.def("__deepcopy__", &generic__deepcopy__)
;
I really don't see how this can get turned into an Item, Any ideas?
Thanks for the he
On 11/08/2011 01:12 AM, Jay Riley wrote:
I'm trying to pass an object from python to C++. I want C++ to take
control of the object.
Am I doing something wrong? base on that snippet it should work. Is
there another way to do this? I know I should probably switch to
smart_ptrs and I'm consider
Sorry just as a quick append, UseComponentWrap inherits from UseComponent to
allow overriding of a few virtual methods
On 2011-11-08, at 1:13 AM, "Jay Riley" wrote:
> I'm trying to pass an object from python to C++. I want C++ to take control
> of the object.
>
> The object I'm trying to chan