Files
GTASource/rage/scaleform/Src/GFxPlayer/GFxCharacterDef.cpp
expvintl 419f2e4752 init
2025-02-23 17:40:52 +08:00

60 lines
1.5 KiB
C++

/**********************************************************************
Filename : GFxCharacterDef.cpp
Content : Implementation of basic GFxCharacterDef functionality.
Created :
Authors : Michael Antonov
Copyright : (c) 2001-2007 Scaleform Corp. All Rights Reserved.
Notes :
Licensees may use this file in accordance with the valid Scaleform
Commercial License Agreement provided with the software.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR ANY PURPOSE.
**********************************************************************/
#include "GFxCharacterDef.h"
#include "GFxCharacter.h"
#include "GFxAction.h"
// For GASExecutTag().
#include "GFxMovieDef.h"
// ***** GFxCharacterDef
// Create a most basic instance through GFxGenericCharacter
GFxCharacter* GFxCharacterDef::CreateCharacterInstance(GFxASCharacter* parent, GFxResourceId rid,
GFxMovieDefImpl *pbindingImpl)
{
GUNUSED(pbindingImpl);
return GHEAP_AUTO_NEW(parent) GFxGenericCharacter(this, parent, rid);
}
void GFxCharacterDef::Display(GFxDisplayContext &, GFxCharacter* pinstanceInfo)
{
GUNUSED(pinstanceInfo);
}
// ***** GFxTimelineDef
// Calls destructors on all of the tag objects.
void GFxTimelineDef::Frame::DestroyTags()
{
for (UInt i=0; i<TagCount; i++)
pTagPtrList[i]->~GASExecuteTag();
// Clear count and pointers.
pTagPtrList = 0;
TagCount = 0;
}