summaryrefslogblamecommitdiffstats
path: root/src/animation/AnimBlendList.h
blob: d4b9a64ac7ccf48f81e413d08a80458b4f39805a (plain) (tree)


























                                           
#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;
	}
};