Change Money type from float to int

This commit is contained in:
VegaZ
2018-10-25 17:55:34 +02:00
parent 99761beaab
commit b0bafcfa00
7 changed files with 18 additions and 18 deletions

View File

@@ -20,7 +20,7 @@ namespace reallife_gamemode.Server.Entities
public int Id { get; set; }
[StringLength(32)]
public string Name { get; set; }
public float BankAccount { get; set; }
public int BankAccount { get; set; }
public bool StateOwned { get; set; }
}
}

View File

@@ -25,7 +25,7 @@ namespace reallife_gamemode.Server.Entities
public string Bic { get; set; }
[StringLength(32)]
public string Iban { get; set; }
public float Balance { get; set; }
public int Balance { get; set; }
public bool Active { get; set; }
}
}

View File

@@ -27,7 +27,7 @@ namespace reallife_gamemode.Server.Entities
public VehicleHash Model { get; set; }
[StringLength(32)]
public string ModelName { get; set; }
public float Price { get; set; }
public int Price { get; set; }
public float PositionX { get; set; }
public float PositionY { get; set; }
public float PositionZ { get; set; }

View File

@@ -19,7 +19,7 @@ namespace reallife_gamemode.Server.Entities
{
public class UserBankAccount
{
private float _balance;
private int _balance;
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
@@ -31,7 +31,7 @@ namespace reallife_gamemode.Server.Entities
public string Bic { get; set; }
[StringLength(32)]
public string Iban { get; set; }
public float Balance {
public int Balance {
get => _balance;
set
{