Exemplo n.º 1
0
 private Weapon Map(Weapon weapon, IDictionary <string, object> row)
 {
     weapon.Id            = Orm.MapGuid(row[nameof(weapon.Id)]);
     weapon.Name          = Orm.MapString(row[nameof(weapon.Name)]);
     weapon.Effectiveness = Orm.MapInt(row[nameof(weapon.Effectiveness)]);
     weapon.Defense       = Orm.MapInt(row[nameof(weapon.Defense)]);
     weapon.Speed         = Orm.MapInt(row[nameof(weapon.Speed)]);
     weapon.Stun          = Orm.MapInt(row[nameof(weapon.Stun)]);
     weapon.Properties    = (WeaponProperties)Orm.MapInt(row[nameof(weapon.Properties)]);
     return(weapon);
 }