| 37 | obe::Animation::AnimatorTargetScaleMode::TextureSize } }); |
| 38 | } |
| 39 | void LoadClassAnimation(sol::state_view state) |
| 40 | { |
| 41 | sol::table AnimationNamespace = state["obe"]["Animation"].get<sol::table>(); |
| 42 | sol::usertype<obe::Animation::Animation> bindAnimation |
| 43 | = AnimationNamespace.new_usertype<obe::Animation::Animation>( |
| 44 | "Animation", sol::call_constructor, sol::default_constructor); |
| 45 | bindAnimation["applyParameters"] = &obe::Animation::Animation::applyParameters; |
| 46 | bindAnimation["getAllAnimationGroupName"] |
| 47 | = &obe::Animation::Animation::getAllAnimationGroupName; |
| 48 | bindAnimation["getDelay"] = &obe::Animation::Animation::getDelay; |
| 49 | bindAnimation["getAnimationGroup"] |
| 50 | = &obe::Animation::Animation::getAnimationGroup; |
| 51 | bindAnimation["getName"] = &obe::Animation::Animation::getName; |
| 52 | bindAnimation["getPlayMode"] = &obe::Animation::Animation::getPlayMode; |
| 53 | bindAnimation["getStatus"] = &obe::Animation::Animation::getStatus; |
| 54 | bindAnimation["getCalledAnimation"] |
| 55 | = &obe::Animation::Animation::getCalledAnimation; |
| 56 | bindAnimation["getCurrentAnimationGroup"] |
| 57 | = &obe::Animation::Animation::getCurrentAnimationGroup; |
| 58 | bindAnimation["getPriority"] = &obe::Animation::Animation::getPriority; |
| 59 | bindAnimation["getTexture"] = &obe::Animation::Animation::getTexture; |
| 60 | bindAnimation["getTextureAtIndex"] |
| 61 | = &obe::Animation::Animation::getTextureAtIndex; |
| 62 | bindAnimation["isOver"] = &obe::Animation::Animation::isOver; |
| 63 | bindAnimation["loadAnimation"] = sol::overload( |
| 64 | [](obe::Animation::Animation* self, const obe::System::Path& path) -> void { |
| 65 | return self->loadAnimation(path); |
| 66 | }, |
| 67 | [](obe::Animation::Animation* self, const obe::System::Path& path, |
| 68 | obe::Engine::ResourceManager* resources) -> void { |
| 69 | return self->loadAnimation(path, resources); |
| 70 | }); |
| 71 | bindAnimation["reset"] = &obe::Animation::Animation::reset; |
| 72 | bindAnimation["update"] = &obe::Animation::Animation::update; |
| 73 | bindAnimation["setAntiAliasing"] = &obe::Animation::Animation::setAntiAliasing; |
| 74 | bindAnimation["getAntiAliasing"] = &obe::Animation::Animation::getAntiAliasing; |
| 75 | } |
| 76 | void LoadClassAnimationGroup(sol::state_view state) |
| 77 | { |
| 78 | sol::table AnimationNamespace = state["obe"]["Animation"].get<sol::table>(); |
nothing calls this directly
no test coverage detected