本文整理汇总了C++中CInifile::w_s32方法的典型用法代码示例。如果您正苦于以下问题:C++ CInifile::w_s32方法的具体用法?C++ CInifile::w_s32怎么用?C++ CInifile::w_s32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CInifile
的用法示例。
在下文中一共展示了CInifile::w_s32方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sizeof
void CPEDef::Save2(CInifile& ini)
{
ini.w_u16 ("_effect", "version", PED_VERSION);
//. ini.w_string ("_effect", "name", m_Name.c_str());
ini.w_u32 ("_effect", "max_particles", m_MaxParticles);
//.!! F.w (m_Actions.pointer(),m_Actions.size());
ini.w_u32 ("_effect", "flags", m_Flags.get());
if (m_Flags.is(dfSprite))
{
ini.w_string ("sprite", "shader", m_ShaderName.c_str());
ini.w_string ("sprite", "texture", m_TextureName.c_str());
}
if (m_Flags.is(dfFramed))
{
ini.w_fvector2 ("frame", "tex_size", m_Frame.m_fTexSize);
ini.w_fvector2 ("frame", "reserved", m_Frame.reserved);
ini.w_s32 ("frame", "dim_x", m_Frame.m_iFrameDimX);
ini.w_s32 ("frame", "frame_count", m_Frame.m_iFrameCount);
ini.w_float ("frame", "speed", m_Frame.m_fSpeed);
}
if (m_Flags.is(dfTimeLimit))
{
ini.w_float ("timelimit", "value", m_fTimeLimit);
}
if (m_Flags.is(dfCollision))
{
ini.w_float ("collision", "one_minus_friction", m_fCollideOneMinusFriction);
ini.w_float ("collision", "collide_resilence", m_fCollideResilience);
ini.w_float ("collision", "collide_sqr_cutoff", m_fCollideSqrCutoff);
}
if (m_Flags.is(dfVelocityScale))
{
ini.w_fvector3 ("velocity_scale", "value", m_VelocityScale);
}
if (m_Flags.is(dfAlignToPath))
{
ini.w_fvector3 ("align_to_path", "default_rotation", m_APDefaultRotation);
}
#ifdef _EDITOR
ini.w_u32 ("_effect", "action_count", m_EActionList.size());
u32 action_id = 0;
for (EPAVecIt it=m_EActionList.begin(); it!=m_EActionList.end(); ++it,++action_id)
{
string256 sect;
xr_sprintf (sect, sizeof(sect), "action_%04d", action_id);
ini.w_u32 (sect, "action_type", (*it)->type);
(*it)->Save2 (ini, sect);
}
#endif
}