本文整理汇总了C++中gd::ArbitraryResourceWorker类的典型用法代码示例。如果您正苦于以下问题:C++ ArbitraryResourceWorker类的具体用法?C++ ArbitraryResourceWorker怎么用?C++ ArbitraryResourceWorker使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ArbitraryResourceWorker类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ExposeActionsResources
void WindowExtension::ExposeActionsResources(gd::Instruction & action, gd::ArbitraryResourceWorker & worker)
{
if ( action.GetType() == "EcrireTexte" && !action.GetParameter( 6 ).GetPlainString().empty() )
{
std::string parameter = action.GetParameter(6).GetPlainString();
worker.ExposeFile(parameter);
action.SetParameter(6, parameter);
}
if ( action.GetType() == "SetWindowIcon" && !action.GetParameter( 1 ).GetPlainString().empty() )
{
std::string parameter = action.GetParameter(1).GetPlainString();
worker.ExposeImage(parameter);
action.SetParameter(1, parameter);
}
}
示例2: ShowResourcesToGD
void SkImageManager::ShowResourcesToGD(gd::ArbitraryResourceWorker & worker)
{
std::map<std::string, boost::shared_ptr<SFMLTextureWrapper> >::iterator it = m_images.begin();
for(; it != m_images.end(); it++)
{
worker.ExposeImage(const_cast<std::string&>(it->first));
}
for(unsigned int a = 0; a < m_needToBeLoaded.size(); a++)
{
std::string value = m_needToBeLoaded.front();
m_needToBeLoaded.pop();
m_needToBeLoaded.push(value);
worker.ExposeImage(value);
}
}
示例3: ExposeActionsResources
void AudioExtension::ExposeActionsResources(gd::Instruction & action, gd::ArbitraryResourceWorker & worker)
{
if ( action.GetType() == "PlaySound" || action.GetType() == "PlaySoundCanal" || action.GetType() == "PlayMusic" || action.GetType() == "PlayMusicCanal" )
{
gd::String parameter = action.GetParameter(1).GetPlainString();
worker.ExposeAudio(parameter);
action.SetParameter(1, parameter);
}
}
示例4: ExposeResources
void SpriteObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
for ( unsigned int j = 0; j < GetAnimationsCount();j++ )
{
for ( unsigned int k = 0;k < GetAnimation( j ).GetDirectionsCount();k++ )
{
for ( unsigned int l = 0;l < GetAnimation( j ).GetDirection(k).GetSpritesCount();l++ )
worker.ExposeImage(GetAnimation( j ).GetDirection(k).GetSprite(l).GetImageName());
}
}
}
示例5:
void Box3DObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
worker.ExposeImage(frontTextureName);
worker.ExposeImage(topTextureName);
worker.ExposeImage(bottomTextureName);
worker.ExposeImage(leftTextureName);
worker.ExposeImage(rightTextureName);
worker.ExposeImage(backTextureName);
}
示例6: ExposeResources
void TiledSpriteObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
worker.ExposeImage(textureName);
}
示例7: ExposeResources
void TileMapObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
worker.ExposeImage(tileSet.Get().textureName);
}
示例8: ExposeResources
void TextObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
worker.ExposeFile(fontName);
}
示例9: ExposeResources
void SoundObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
worker.ExposeFile(fileName);
}
示例10: ExposeResources
void ParticleEmitterObject::ExposeResources(
gd::ArbitraryResourceWorker& worker) {
gd::String texture = GetParticleTexture();
worker.ExposeImage(texture);
SetParticleTexture(texture);
}