Esempio n. 1
0
	private EMDataEventStruct SetData (int row, params string[] metaData)
	{
		int i = 0;		EMDataEventStruct data = new EMDataEventStruct();
		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.EventType))	{
		Debug.LogError (string.Format("[Error] row : {0}, EventType", 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.EvenTName))	{
		Debug.LogError (string.Format("[Error] row : {0}, EvenTName", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.EventInfo))	{
		Debug.LogError (string.Format("[Error] row : {0}, EventInfo", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.EventBuyInfo))	{
		Debug.LogError (string.Format("[Error] row : {0}, EventBuyInfo", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.SaleMin))	{
		Debug.LogError (string.Format("[Error] row : {0}, SaleMin", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.SaleMax))	{
		Debug.LogError (string.Format("[Error] row : {0}, SaleMax", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GainGold))	{
		Debug.LogError (string.Format("[Error] row : {0}, GainGold", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GainHp))	{
		Debug.LogError (string.Format("[Error] row : {0}, GainHp", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GainPatience))	{
		Debug.LogError (string.Format("[Error] row : {0}, GainPatience", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GainMath))	{
		Debug.LogError (string.Format("[Error] row : {0}, GainMath", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.Gain_GLanguage))	{
		Debug.LogError (string.Format("[Error] row : {0}, Gain_GLanguage", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.Gain_Language))	{
		Debug.LogError (string.Format("[Error] row : {0}, Gain_Language", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GainCommon))	{
		Debug.LogError (string.Format("[Error] row : {0}, GainCommon", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GainJop))	{
		Debug.LogError (string.Format("[Error] row : {0}, GainJop", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GainPrivate))	{
		Debug.LogError (string.Format("[Error] row : {0}, GainPrivate", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.GainRest))	{
		Debug.LogError (string.Format("[Error] row : {0}, GainRest", row)); return null; }
		if (!int.TryParse (metaData [i++], out data.probabilityGroupID))	{
		Debug.LogError (string.Format("[Error] row : {0}, probabilityGroupID", row)); return null; }
		return data;
	}
Esempio n. 2
0
	public void Copy (EMDataEventStruct orgData)
	{
		ID = orgData.ID ;
		EventType = orgData.EventType ;
		LevelType = orgData.LevelType ;
		EvenTName = orgData.EvenTName ;
		EventInfo = orgData.EventInfo ;
		EventBuyInfo = orgData.EventBuyInfo ;
		SaleMin = orgData.SaleMin ;
		SaleMax = orgData.SaleMax ;
		GainGold = orgData.GainGold ;
		GainHp = orgData.GainHp ;
		GainPatience = orgData.GainPatience ;
		GainMath = orgData.GainMath ;
		Gain_GLanguage = orgData.Gain_GLanguage ;
		Gain_Language = orgData.Gain_Language ;
		GainCommon = orgData.GainCommon ;
		GainJop = orgData.GainJop ;
		GainPrivate = orgData.GainPrivate ;
		GainRest = orgData.GainRest ;
		probabilityGroupID = orgData.probabilityGroupID ;
	}
Esempio n. 3
0
	public EMDataEventStruct (EMDataEventStruct orgData)
	{
		Copy(orgData) ;
	}