diff --git a/Assets/MYSQL.txt b/Assets/MYSQL.txt new file mode 100644 index 0000000..0c6d282 --- /dev/null +++ b/Assets/MYSQL.txt @@ -0,0 +1,30 @@ +CREATE TABLE properties ( + property_id int(2) AUTO_INCREMENT PRIMARY KEY NOT NULL, #Easy way to identify with code + property_name TINYTEXT NOT NULL, #The name of the property + property_group TINYTEXT NOT NULL, #The group that the property is + property_value int(3) NOT NULL, #How much it costs to buy the property + property_cost int(3), #How much it is to buy a house/hotel + property_rent int(2), #How much it costs to rent + property_house1 int(3), #How much it costs with 1 house + property_house2 int(3), #How much it costs with 2 houses + property_house3 int(4), #How much it costs with 3 houses + property_house4 int(4), #How much it costs with 4 houses + property_hotel int(4) #How much it costs with a hotel +); + +property_name,property_group,property_value,property_cost,property_rent,property_house1,property_house2,property_house3,property_house4,property_hotel + +CREATE TABLE users ( + user_id int(11) AUTO_INCREMENT PRIMARY KEY NOT NULL, #This is a uniquie ID for the user + user_uid TINYTEXT NOT NULL, #This is the username for the user + user_email TINYTEXT NOT NULL, #This is the email for the user + user_pwd LONGTEXT NOT NULL #This is where the hashed password would be stored +); + +CREATE TABLE pwdreset ( + pwd_id int(11) PRIMARY KEY AUTO_INCREMENT NOT NULL, #This is a unique identifier + pwd_email TEXT NOT NULL, #The email used to change the password for + pwd_selector TEXT NOT NULL, #Where the selector is stored in plaintext + pwd_token LONGTEXT NOT NULL, #Where the hashed token is stored + pwd_expires TEXT NOT NULL #When the token expires +); \ No newline at end of file diff --git a/Assets/MYSQL.txt.meta b/Assets/MYSQL.txt.meta new file mode 100644 index 0000000..aa962f4 --- /dev/null +++ b/Assets/MYSQL.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4e2ec0654b6aa5c4990ff0ee457f2409 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/board.cs b/Assets/board.cs index 2c46bd4..f90c097 100644 --- a/Assets/board.cs +++ b/Assets/board.cs @@ -1,7 +1,7 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -using properties; +using static properties; public class board : MonoBehaviour { @@ -10,7 +10,8 @@ public class board : MonoBehaviour { public int houses; //Initialising houses public int hotels; //Initialising hotels - List cards = new List; + // List cards = new List; + Property cards = new Property("test", "test", 200, 400); public Board() { diff --git a/Assets/properties.csv b/Assets/properties.csv new file mode 100644 index 0000000..e21493d --- /dev/null +++ b/Assets/properties.csv @@ -0,0 +1,29 @@ +property_name,property_group,property_value,property_cost,property_rent,property_house1,property_house2,property_house3,property_house4,property_hotel +Old Kent Road,brown,60,50,2,10,30,90,160,250 +Whitechapel Road,brown,60,50,4,20,60,180,360,450 +King's Cross Station,station,200,NULL,NULL,NULL,NULL,NULL,NULL,NULL +The Angel Islington,light blue,100,50,6,30,90,270,400,550 +Euston Road,light blue,100,50,6,30,90,270,400,550 +Pentonville Road,light blue,120,50,8,40,100,300,450,600 +Pall Mall,pink,140,100,10,50,150,450,625,750 +Electric Company,utilities,150,NULL,NULL,NULL,NULL,NULL,NULL,NULL +Whitehall,pink,140,100,10,50,150,450,625,750 +Northumberland Avenue,pink,160,100,12,60,180,500,700,900 +Marylebone Station,station,200,NULL,NULL,NULL,NULL,NULL,NULL,NULL +Bow Street,orange,180,100,14,70,200,550,750,950 +Marlborough Street,orange,180,100,14,70,200,550,750,950 +Vine Street,orange,200,100,16,80,220,600,800,1000 +The Strand,red,220,150,18,90,250,700,875,1050 +Fleet Street,red,220,150,18,90,250,700,875,1050 +Trafalgar Square,red,240,150,20,100,300,750,925,1100 +Fenchurch St Station,station,200,NULL,NULL,NULL,NULL,NULL,NULL,NULL +Leicester Square,yellow,260,150,22,110,330,800,975,1150 +Coventry Street,yellow,260,150,22,110,330,800,975,1150 +Water Works,utilities,150,NULL,NULL,NULL,NULL,NULL,NULL,NULL +Piccadilly,yellow,280,150,22,120,360,850,1025,1200 +Regent Street,green,300,200,26,130,390,900,1100,1275 +Oxford Street,green,300,200,26,130,390,900,1100,1275 +Bond Street,green,320,200,28,150,450,1000,1200,1400 +Liverpool Street Station,station,200,NULL,NULL,NULL,NULL,NULL,NULL,NULL +Park Lane,dark blue,350,200,35,175,500,1100,1300,1500 +Mayfair,dark blue,400,200,50,200,600,1400,1700,2000 diff --git a/Assets/properties.csv.meta b/Assets/properties.csv.meta new file mode 100644 index 0000000..f28acaa --- /dev/null +++ b/Assets/properties.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1f2efedfae3c9544b88689c5c215b021 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/properties.xlsx b/Assets/properties.xlsx new file mode 100644 index 0000000..01c0e67 Binary files /dev/null and b/Assets/properties.xlsx differ diff --git a/Assets/properties.xlsx.meta b/Assets/properties.xlsx.meta new file mode 100644 index 0000000..889fcc7 --- /dev/null +++ b/Assets/properties.xlsx.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8ace548a18d3a9f4ca027af2228b4fc7 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: