mirror of
https://github.com/shibbo/3dcomp.git
synced 2024-11-23 05:29:44 +00:00
start on some Project/Animation
This commit is contained in:
parent
b7f7666e54
commit
05500e2252
@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"label": "decompiled",
|
||||
"message": "0.2941%",
|
||||
"message": "0.2955%",
|
||||
"color": "blue"
|
||||
}
|
@ -55202,10 +55202,10 @@ _ZNK2al16AnimPlayerSimple18getPlayingAnimNameEv=00000071008E04E0=0000001C=false
|
||||
_ZN2al16AnimPlayerSimple22calcNeedUpdateAnimNextEv=00000071008E0500=000000A0=false
|
||||
_ZN2al16AnimPlayerSimple7applyToEv=00000071008E05A0=00000054=false
|
||||
_ZN2al14AnimPlayerBaseC2Ev=00000071008E0600=00000018=false
|
||||
_ZN2al11AnimResInfoC2Ev=00000071008E0620=0000000C=false
|
||||
_ZNK2al11AnimResInfo11getFrameMaxEv=00000071008E0630=0000000C=false
|
||||
_ZNK2al11AnimResInfo6isLoopEv=00000071008E0640=00000008=false
|
||||
_ZN2al13AnimInfoTableC2Ei=00000071008E0650=00000078=false
|
||||
_ZN2al11AnimResInfoC2Ev=00000071008E0620=0000000C=true
|
||||
_ZNK2al11AnimResInfo11getFrameMaxEv=00000071008E0630=0000000C=true
|
||||
_ZNK2al11AnimResInfo6isLoopEv=00000071008E0640=00000008=true
|
||||
_ZN2al13AnimInfoTableC2Ei=00000071008E0650=00000078=true
|
||||
_ZN2al13AnimInfoTable3addEPKcPvfb=00000071008E06D0=00000070=false
|
||||
_ZNK2al13AnimInfoTable12findAnimInfoEPKc=00000071008E0740=000000DC=false
|
||||
_ZNK2al13AnimInfoTable15tryFindAnimInfoEPKc=00000071008E0820=000000DC=false
|
||||
|
@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <types.hpp>
|
||||
|
||||
#include "Library/HostIO/IUseHioNode.hpp"
|
||||
|
||||
namespace al {
|
||||
class AnimInfoTable;
|
||||
|
||||
class AnimPlayerBase : public HioNode {
|
||||
public:
|
||||
AnimPlayerBase();
|
||||
|
||||
virtual void updateLast();
|
||||
virtual bool calcNeedUpdateAnimNext() = 0;
|
||||
|
||||
AnimInfoTable* mInfoTable = nullptr; // 0x08
|
||||
bool _10 = false;
|
||||
bool _11 = false;
|
||||
};
|
||||
}; // namespace al
|
27
lib/ActionLibrary/include/Project/Animation/AnimRes.hpp
Normal file
27
lib/ActionLibrary/include/Project/Animation/AnimRes.hpp
Normal file
@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <types.hpp>
|
||||
|
||||
namespace al {
|
||||
class AnimResInfo {
|
||||
public:
|
||||
AnimResInfo();
|
||||
|
||||
s32 getFrameMax() const;
|
||||
bool isLoop() const;
|
||||
|
||||
const char* mName = nullptr; // 0x00
|
||||
void* mRes = nullptr; // 0x08
|
||||
f32 mFrameMax = 0; // 0x10
|
||||
bool mIsLoop = false; // 0x14
|
||||
};
|
||||
|
||||
class AnimInfoTable {
|
||||
public:
|
||||
AnimInfoTable(s32);
|
||||
|
||||
u32 mInfoCount = 0; // 0x00
|
||||
AnimResInfo* mResInfArr = nullptr; // 0x08
|
||||
bool mIsSorted = false; // 0x10
|
||||
};
|
||||
}; // namespace al
|
17
lib/ActionLibrary/source/Project/Animation/AnimRes.cpp
Normal file
17
lib/ActionLibrary/source/Project/Animation/AnimRes.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "Project/Animation/AnimRes.hpp"
|
||||
|
||||
namespace al {
|
||||
AnimResInfo::AnimResInfo() {}
|
||||
|
||||
s32 AnimResInfo::getFrameMax() const {
|
||||
return mFrameMax;
|
||||
}
|
||||
|
||||
bool AnimResInfo::isLoop() const {
|
||||
return mIsLoop;
|
||||
}
|
||||
|
||||
AnimInfoTable::AnimInfoTable(s32 maxInfos) {
|
||||
mResInfArr = new AnimResInfo[maxInfos];
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user