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