| 
									
										
										
										
											2022-07-04 11:17:39 +00:00
										 |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Data; | 
					
						
							|  |  |  |  | using System.Collections; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using UnityEngine; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | namespace MMO | 
					
						
							|  |  |  |  | { | 
					
						
							| 
									
										
										
										
											2022-09-09 14:35:49 +00:00
										 |  |  |  |     public class MMOTableLevelDiamond : MMOTableBase<MMOTableLevelDiamond, MMODataLevelDiamond, int> | 
					
						
							| 
									
										
										
										
											2022-07-04 11:17:39 +00:00
										 |  |  |  |     { | 
					
						
							|  |  |  |  |         public override MMODataLevelDiamond GetData(int pID) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             return mDataList.Find(pItem => pItem.Level == pID); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     [Serializable] | 
					
						
							| 
									
										
										
										
											2022-09-09 14:35:49 +00:00
										 |  |  |  |     public class MMODataLevelDiamond : MMODataBase | 
					
						
							| 
									
										
										
										
											2022-07-04 11:17:39 +00:00
										 |  |  |  |     { | 
					
						
							|  |  |  |  |         public int Level; | 
					
						
							|  |  |  |  |         public int Diamond; | 
					
						
							| 
									
										
										
										
											2022-09-09 14:35:49 +00:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         public override void ParseData(DataRow pCollection) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             Level = 0; | 
					
						
							|  |  |  |  |             int.TryParse(pCollection[0].ToString(), out Level); | 
					
						
							|  |  |  |  |             Diamond = 0; | 
					
						
							|  |  |  |  |             int.TryParse(pCollection[1].ToString(), out Diamond); | 
					
						
							|  |  |  |  |         } | 
					
						
							| 
									
										
										
										
											2022-07-04 11:17:39 +00:00
										 |  |  |  |     } | 
					
						
							|  |  |  |  | } |