mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(component): implement CCharacterComponent::RemoveLinkpt
This commit is contained in:
parent
ccaf2af8cb
commit
137045e947
@ -718,7 +718,23 @@ void CCharacterComponent::PasteTransparent8Bit(void* srcTexture, const BlpPalPix
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterComponent::RemoveLinkpt(CM2Model* model, GEOCOMPONENTLINKS link) {
|
void CCharacterComponent::RemoveLinkpt(CM2Model* model, GEOCOMPONENTLINKS link) {
|
||||||
// TODO
|
if (link == ATTACH_NONE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (link == ATTACH_SHIELD || link == ATTACH_HANDL) {
|
||||||
|
CCharacterComponent::ComponentOpenFingers(model, HAND_LEFT);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (link == ATTACH_HANDR) {
|
||||||
|
CCharacterComponent::ComponentOpenFingers(model, HAND_RIGHT);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (model && model->IsLoaded(0, 0)) {
|
||||||
|
if (model->HasAttachment(link)) {
|
||||||
|
model->DetachAllChildrenById(link);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterComponent::UpdateBaseTexture(EGxTexCommand cmd, uint32_t width, uint32_t height, uint32_t depth, uint32_t mipLevel, void* userArg, uint32_t& texelStrideInBytes, const void*& texels) {
|
void CCharacterComponent::UpdateBaseTexture(EGxTexCommand cmd, uint32_t width, uint32_t height, uint32_t depth, uint32_t mipLevel, void* userArg, uint32_t& texelStrideInBytes, const void*& texels) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user