1.Commit
This commit is contained in:
36
Assets/Scripts/PlayerValues.cs
Normal file
36
Assets/Scripts/PlayerValues.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
public class PlayerValues
|
||||
{
|
||||
// Player id
|
||||
public int id { get; set; }
|
||||
|
||||
// Player values
|
||||
public int money { get; set; }
|
||||
public int science { get; set; }
|
||||
public int power { get; set; }
|
||||
public int food { get; set; }
|
||||
public int industrialCapacity { get; set; }
|
||||
|
||||
// Default constructor
|
||||
public PlayerValues()
|
||||
{
|
||||
this.id = 0;
|
||||
|
||||
this.money = 0;
|
||||
this.science = 0;
|
||||
this.power = 0;
|
||||
this.food = 0;
|
||||
this.industrialCapacity = 0;
|
||||
}
|
||||
|
||||
// Constructor to init values
|
||||
public PlayerValues(int id, int newMoney, int newScience, int newPower, int newFood, int newIC)
|
||||
{
|
||||
this.id = id;
|
||||
|
||||
this.money = newMoney;
|
||||
this.science = newScience;
|
||||
this.power = newPower;
|
||||
this.food = newFood;
|
||||
this.industrialCapacity = newIC;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user