Re3/src/animation/AnimBlendList.h

29 lines
396 B
C
Raw Permalink Normal View History

#pragma once
// name made up
class CAnimBlendLink
{
public:
CAnimBlendLink *next;
CAnimBlendLink *prev;
void Init(void){
next = nil;
prev = nil;
}
void Prepend(CAnimBlendLink *link){
if(next)
next->prev = link;
link->next = next;
link->prev = this;
next = link;
}
void Remove(void){
if(prev)
prev->next = next;
if(next)
next->prev = prev;
2020-05-08 14:58:40 -04:00
Init();
}
};