$#include "Model.h" class Model : public Resource { // SharedPtr Clone(const String cloneName = String::EMPTY) const; tolua_outside Model* ModelClone @ Clone(const String cloneName = String::EMPTY) const; const BoundingBox& GetBoundingBox() const; Skeleton& GetSkeleton(); unsigned GetNumGeometries() const; unsigned GetNumGeometryLodLevels(unsigned index) const; Geometry* GetGeometry(unsigned index, unsigned lodLevel) const; unsigned GetNumMorphs() const; const ModelMorph* GetMorph(const String name) const; const ModelMorph* GetMorph(StringHash nameHash) const; const ModelMorph* GetMorph(unsigned index) const; unsigned GetMorphRangeStart(unsigned bufferIndex) const; unsigned GetMorphRangeCount(unsigned bufferIndex) const; tolua_readonly tolua_property__get_set BoundingBox& boundingBox; tolua_readonly tolua_property__get_set Skeleton skeleton; tolua_readonly tolua_property__get_set unsigned numGeometries; tolua_readonly tolua_property__get_set unsigned numMorphs; }; ${ static Model* ModelClone(const Model* model, const String& cloneName = String::EMPTY) { if (!model) return 0; SharedPtr clonedModelPtr = model->Clone(cloneName); Model* clonedModel = clonedModelPtr.Get(); clonedModelPtr.Detach(); return clonedModel; } $}