예제 #1
0
	private EMDataUniversityStruct SetData (int row, params string[] metaData)
	{
		int i = 0;		EMDataUniversityStruct data = new EMDataUniversityStruct();
		if (!int.TryParse (metaData [i++], out data.Id))	{
		Debug.LogError (string.Format("[Error] row : {0}, Id", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.LevelType))	{
		Debug.LogError (string.Format("[Error] row : {0}, LevelType", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GradeNameId))	{
		Debug.LogError (string.Format("[Error] row : {0}, GradeNameId", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.UniversityNameId))	{
		Debug.LogError (string.Format("[Error] row : {0}, UniversityNameId", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.ConditionGold))	{
		Debug.LogError (string.Format("[Error] row : {0}, ConditionGold", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.ConditionHp))	{
		Debug.LogError (string.Format("[Error] row : {0}, ConditionHp", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.ConditionPatience))	{
		Debug.LogError (string.Format("[Error] row : {0}, ConditionPatience", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.ConditionMath))	{
		Debug.LogError (string.Format("[Error] row : {0}, ConditionMath", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.Condition_GLanguage))	{
		Debug.LogError (string.Format("[Error] row : {0}, Condition_GLanguage", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.Condition_Language))	{
		Debug.LogError (string.Format("[Error] row : {0}, Condition_Language", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.ConditionCommon))	{
		Debug.LogError (string.Format("[Error] row : {0}, ConditionCommon", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.ConditionJop))	{
		Debug.LogError (string.Format("[Error] row : {0}, ConditionJop", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.ConditionPrivate))	{
		Debug.LogError (string.Format("[Error] row : {0}, ConditionPrivate", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.ConditionRest))	{
		Debug.LogError (string.Format("[Error] row : {0}, ConditionRest", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.EndingType))	{
		Debug.LogError (string.Format("[Error] row : {0}, EndingType", row)); return null; }
		return data;
	}
예제 #2
0
	public void Copy (EMDataUniversityStruct orgData)
	{
		Id = orgData.Id ;
		LevelType = orgData.LevelType ;
		GradeNameId = orgData.GradeNameId ;
		UniversityNameId = orgData.UniversityNameId ;
		ConditionGold = orgData.ConditionGold ;
		ConditionHp = orgData.ConditionHp ;
		ConditionPatience = orgData.ConditionPatience ;
		ConditionMath = orgData.ConditionMath ;
		Condition_GLanguage = orgData.Condition_GLanguage ;
		Condition_Language = orgData.Condition_Language ;
		ConditionCommon = orgData.ConditionCommon ;
		ConditionJop = orgData.ConditionJop ;
		ConditionPrivate = orgData.ConditionPrivate ;
		ConditionRest = orgData.ConditionRest ;
		EndingType = orgData.EndingType ;
	}
예제 #3
0
	public EMDataUniversityStruct (EMDataUniversityStruct orgData)
	{
		Copy(orgData) ;
	}