2020-01-31 19:34:47 +01:00
|
|
|
/*
|
|
|
|
Copyright (c) 2019-2020 Péter Magyar
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2020-01-02 22:56:24 +01:00
|
|
|
#include "character_skeleton_2d.h"
|
|
|
|
|
2020-05-19 21:09:00 +02:00
|
|
|
void CharacterSkeleton2D::add_model_visual(Ref<ModelVisual> vis) {
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|
2020-05-19 21:09:00 +02:00
|
|
|
void CharacterSkeleton2D::remove_model_visual(Ref<ModelVisual> vis) {
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|
2020-05-19 21:09:00 +02:00
|
|
|
void CharacterSkeleton2D::remove_model_visual_index(int index) {
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|
2020-05-19 21:09:00 +02:00
|
|
|
Ref<ModelVisual> CharacterSkeleton2D::get_model_visual(int index) {
|
|
|
|
return Ref<ModelVisual>();
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|
2020-05-19 21:09:00 +02:00
|
|
|
int CharacterSkeleton2D::get_model_visual_count() {
|
2020-01-02 22:56:24 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2020-05-19 21:09:00 +02:00
|
|
|
void CharacterSkeleton2D::clear_model_visuals() {
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|
|
|
|
|
2020-05-20 20:38:10 +02:00
|
|
|
int CharacterSkeleton2D::get_model_index() {
|
|
|
|
return _model_index;
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|
2020-05-20 20:38:10 +02:00
|
|
|
void CharacterSkeleton2D::set_model_index(int value) {
|
|
|
|
_model_index = value;
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
CharacterSkeleton2D::CharacterSkeleton2D() {
|
2020-05-20 20:38:10 +02:00
|
|
|
_model_index = 0;
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
CharacterSkeleton2D::~CharacterSkeleton2D() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void CharacterSkeleton2D::_bind_methods() {
|
2020-05-20 20:38:10 +02:00
|
|
|
ClassDB::bind_method(D_METHOD("get_model_index"), &CharacterSkeleton2D::get_model_index);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_model_index", "value"), &CharacterSkeleton2D::set_model_index);
|
|
|
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "model_index"), "set_model_index", "get_model_index");
|
2020-01-02 22:56:24 +01:00
|
|
|
|
2020-05-19 21:09:00 +02:00
|
|
|
ClassDB::bind_method(D_METHOD("add_model_visual", "vis"), &CharacterSkeleton2D::add_model_visual);
|
|
|
|
ClassDB::bind_method(D_METHOD("remove_model_visual", "vis"), &CharacterSkeleton2D::remove_model_visual);
|
|
|
|
ClassDB::bind_method(D_METHOD("remove_model_visual_index", "index"), &CharacterSkeleton2D::remove_model_visual_index);
|
|
|
|
ClassDB::bind_method(D_METHOD("get_model_visual", "index"), &CharacterSkeleton2D::get_model_visual);
|
|
|
|
ClassDB::bind_method(D_METHOD("get_model_visual_count"), &CharacterSkeleton2D::get_model_visual_count);
|
|
|
|
ClassDB::bind_method(D_METHOD("clear_model_visuals"), &CharacterSkeleton2D::clear_model_visuals);
|
2020-01-02 22:56:24 +01:00
|
|
|
}
|