コード例 #1
0
bool CSpriteProduct::Read(PxcUtil::CCSVTableOperator& tabop)
{
	if (!tabop.GetValue("ID", m_iID))
		return false;

	int isf = 0;
	if (tabop.GetValue("IsSpriteFrame", isf))
		m_bSpriteFrame = (bool)isf;
	else
		return false;

	if (m_bSpriteFrame)
	{
		if (!tabop.GetValue("PlistFileName", m_strPlistFileName))
			return false;

		if (!tabop.GetValue("TexFileName", m_strAtlasFileName))
			return false;

		if (!tabop.GetValue("FrameName", m_strName))
			return false;
	}
	else
	{
		if (!tabop.GetValue("TexFileName", m_strName))
			return false;
	}

	return true;
}
コード例 #2
0
bool CAnimateProduct::Read(PxcUtil::CCSVTableOperator& tabop, GlobalDef::ELanguage eLanguage)
{
	if (!tabop.GetValue("ID", m_iID))
		return false;

	if (!tabop.GetValue("PlistFileName", m_strPlistFileName))
		return false;

	if (!tabop.GetValue("Name", m_strName))
		return false;

	if (!tabop.GetValue("SFPlistFile", m_strSFPlistFile))
		return false;
	
	bool bGlobal = false;
	if (!tabop.GetValue("IsGlobal", bGlobal))
		return false;
	if (!tabop.GetValue("SFAtlasFile", m_strSFAtlasFile))
		return false;
	else if (bGlobal)
		GlobalDef::InsertLanguageFolder(m_strSFAtlasFile, eLanguage);

	return true;
}
コード例 #3
0
void CStoryTextRow::Read(PxcUtil::CCSVTableOperator& tabop)
{
	tabop.GetValue("ID", m_iID);
	tabop.GetValue("Text", m_strText);
}