Ejemplo n.º 1
0
 /// <summary>
 /// Begins a new analysis record.
 /// </summary>
 /// <param name="gameType">Current game mode</param>
 public static void BeginAnalysis(BiofeedbackMode gameType)
 {
     // calculate player's ID from current time:
     playerID = Convert.ToInt64(DateTime.Now.ToString("yyyyMMddHHmmssff"));
     filePath = dataDirectory + playerID;
     file     = File.Create(filePath);
     // save info about player and game settings:
     AddTestInfo(playerID, gameType);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Saves information about current game settings.
        /// </summary>
        /// <param name="infoType">Type of game settings data</param>
        /// <param name="value">Value of game settings data</param>
        public static void AddTestInfo(long playerID, BiofeedbackMode gameType)
        {
            string data = "- TestInfo " + playerID.ToString() + " " + gameType.ToString();

            SaveToFile(data);
        }