示例#1
0
        public static MobInfo Load(DataRow row)
        {
            var inf = new MobInfo
            {
                Name     = (string)row["InxName"],
                ID       = GetDataTypes.GetUshort(row["ID"]),
                Level    = GetDataTypes.GetByte(row["Level"]),
                MaxHP    = GetDataTypes.GetUint(row["MaxHP"]),
                RunSpeed = GetDataTypes.GetUshort(row["RunSpeed"]),
                IsNpc    = GetDataTypes.GetBool(row["IsNPC"]),
                Size     = GetDataTypes.GetUshort(row["Size"]),
                Type     = GetDataTypes.GetByte(row["Type"]),
                IsAggro  = GetDataTypes.GetBool(row["IsPlayerSide"]),
                Drops    = new List <DropInfo>()
            };

            return(inf);
        }
示例#2
0
 public static MobInfo Load(DataRow row)
 {
     MobInfo inf = new MobInfo
     {
         Name = (string)row["InxName"],
         ID = GetDataTypes.GetUshort(row["ID"]),
         Level = GetDataTypes.GetByte(row["Level"]),
         MaxHP = GetDataTypes.GetUint(row["MaxHP"]),
         RunSpeed = GetDataTypes.GetUshort(row["RunSpeed"]),
         IsNpc = GetDataTypes.GetBool(row["IsNPC"]),
         Size =  GetDataTypes.GetUshort(row["Size"]),
         Type = GetDataTypes.GetByte(row["Type"]),
         IsAggro = GetDataTypes.GetBool(row["IsPlayerSide"]),
         Drops = new List<DropInfo>()
     };
     return inf;
 }