// Create a table in the cloud to store objects of type PlayerInfo. public static void CreatePlayerTable(bool runtime) { Debug.Log("<color=yellow>Creating a table in the cloud for players data.</color>"); // Creting an string array for field (table headers) names. string[] fieldNames = new string[4]; fieldNames[0] = "name"; fieldNames[1] = "level"; fieldNames[2] = "health"; fieldNames[3] = "role"; // Request for the table to be created on the cloud. CloudConnectorCore.CreateTable(fieldNames, tableName, runtime); }
// Might not include this. this is used for debugging atm. We should just have a static table created b4 hand and just update it. //That would be better than creating a new table everytime. Would allow us to keep progress of players. public static void CreatePlayerTable(bool runtime) { Debug.Log("<color=yellow>Creating a table in the cloud for players data.</color>"); // Creting an string array for field (table headers) names. string[] fieldNames = new string[12]; fieldNames[0] = "name"; fieldNames[1] = "q1"; fieldNames[2] = "q2"; fieldNames[3] = "q3"; fieldNames[4] = "q4"; fieldNames[5] = "q5"; fieldNames[6] = "q6"; fieldNames[7] = "q7"; fieldNames[8] = "q8"; fieldNames[9] = "q9"; fieldNames[10] = "q10"; fieldNames[11] = "q11"; // Request for the table to be created on the cloud. CloudConnectorCore.CreateTable(fieldNames, tableName, runtime); }