/*---------------------------------------------------------------------------* Project: NintendoWare File: gfx_ResParticleAnimation.h Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo and/or its licensed developers and are protected by national and international copyright laws. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. The content herein is highly confidential and should be handled accordingly. $Revision: $ *---------------------------------------------------------------------------*/ #ifndef NW_GFX_RESPARTICLEANIMATION_H_ #define NW_GFX_RESPARTICLEANIMATION_H_ #include #include #include #include namespace nw { namespace gfx { namespace res { //! @details :private struct ResParticleAnimationData { nw::ut::ResTypeInfo typeInfo; nw::ut::Offset toParticleAnimationOption; nw::ut::ResS32 m_AnimationLength; nw::ut::ResS32 m_AnimationDimension; nw::ut::ResS32 m_AnimationStride; nw::ut::ResS32 m_AnimationEnabledTableCount; nw::ut::Offset toAnimationEnabledTable; nw::ut::ResS32 m_AnimationDataTableCount; nw::ut::Offset toAnimationDataTable; }; //-------------------------------------------------------------------------- //! @brief パーティクルアニメーションを表すバイナリリソースクラスです。 //--------------------------------------------------------------------------- class ResParticleAnimation : public nw::ut::ResCommon< ResParticleAnimationData > { public: enum { TYPE_INFO = NW_GFX_RES_TYPE_INFO(ResParticleAnimation) }; enum { SIGNATURE = NW_RES_SIGNATURE32('ANIM') }; NW_RES_CTOR( ResParticleAnimation ) NW_RES_FIELD_CLASS_DECL( ResParticleAnimationOption, ParticleAnimationOption ) NW_RES_FIELD_PRIMITIVE_DECL( s32, AnimationLength ) NW_RES_FIELD_PRIMITIVE_DECL( s32, AnimationDimension ) NW_RES_FIELD_PRIMITIVE_DECL( s32, AnimationStride ) NW_RES_FIELD_PRIMITIVE_LIST_DECL( bool, AnimationEnabled ) NW_RES_FIELD_PRIMITIVE_LIST_DECL( f32, AnimationData ) //--------------------------------------------------------------------------- //! @brief インスタンスの型情報を取得します。 //! //! @return 型情報です。 //--------------------------------------------------------------------------- nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } }; } // namespace res } // namespace gfx } // namespace nw #endif // NW_GFX_RESPARTICLEANIMATION_H_