Initial commit

This commit is contained in:
Segey Lapin
2021-07-31 03:30:12 +03:00
commit 91cf9d2d34
249 changed files with 27582 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
#ifndef CHARACTER_SLOT_H
#define CHARACTER_SLOT_H
#include <core/reference.h>
#include <scene/resources/mesh.h>
class CharacterSlot {
friend class CharacterGenderList;
friend class CharacterInstanceList;
friend class CharacterModifiers;
String name;
String category;
String match;
String helper;
bool mandatory;
bool blend_skip;
};
class CharacterInstance;
class CharacterSlotInstance {
friend class CharacterInstanceList;
friend class CharacterModifiers;
const CharacterSlot *slot;
NodePath slot_path;
int mesh_no;
bool dirty;
Ref<ArrayMesh> mesh;
float *meshdata;
int vertex_count;
int uv_index;
HashMap<int, Vector<int> > same_verts;
CharacterInstance *char_instance;
NodePath node_path;
public:
CharacterSlotInstance();
~CharacterSlotInstance();
};
#endif