예제 #1
0
 private Settings Map(Settings settings, IDictionary <string, object> row)
 {
     settings.Id          = Orm.MapGuid(row[nameof(settings.Id)]);
     settings.MusicVolume = Orm.MapInt(row[nameof(settings.MusicVolume)]);
     settings.Preferences = (Preferences)Orm.MapInt(row[nameof(settings.Preferences)]);
     return(settings);
 }
예제 #2
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);
 }