/****************************************************************************** libx42.net - skinned vertex animation library (.NET API) Copyright (C) 2007 HermitWorks Entertainment Corporation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA. ******************************************************************************/ #pragma once #include "ModelItemCollection.h" namespace Libx42 { ref class Model; ref class Bone; ref class BoneCollection; public ref class AnimationGroup { public: property Model^ Owner { Model^ get( void ) { return owner; } } property int Index { int get( void ) { return index; } } [ComponentModel::EditorBrowsable( ComponentModel::EditorBrowsableState::Advanced )] property const x42animGroup_t& RawAnimGroup { const x42animGroup_t& get( void ); } property String^ Name { String^ get( void ); } property int FirstBone { int get( void ) { return RawAnimGroup.beginBone; } } property int NumBones { int get( void ) { return RawAnimGroup.endBone - RawAnimGroup.beginBone; } } property BoneCollection^ Bones { BoneCollection^ get( void ) { return bones; } } internal: AnimationGroup( Model ^owner, int index ); private: Model ^owner; int index; BoneCollection ^bones; }; public ref class AnimationGroupCollection : public ModelItemCollection< AnimationGroup^ > { internal: AnimationGroupCollection( Model ^owner ); }; };