31 lines
		
	
	
		
			787 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			787 B
		
	
	
	
		
			C#
		
	
	
	
| using System;
 | |
| using System.Data;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| namespace MMO
 | |
| {
 | |
|     public class MMOTableLevelDiamond : MMOTableBase<MMOTableLevelDiamond, MMODataLevelDiamond, int>
 | |
|     {
 | |
|         public override MMODataLevelDiamond GetData(int pID)
 | |
|         {
 | |
|             return mDataList.Find(pItem => pItem.Level == pID);
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     [Serializable]
 | |
|     public class MMODataLevelDiamond : MMODataBase
 | |
|     {
 | |
|         public int Level;
 | |
|         public int Diamond;
 | |
| 
 | |
|         public override void ParseData(DataRow pCollection)
 | |
|         {
 | |
|             Level = 0;
 | |
|             int.TryParse(pCollection[0].ToString(), out Level);
 | |
|             Diamond = 0;
 | |
|             int.TryParse(pCollection[1].ToString(), out Diamond);
 | |
|         }
 | |
|     }
 | |
| } |