using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace Game.Astropolis
{
///
/// This class stores all the Subversion information
///
class SubVersion
{
//The last revision number
public static String Revision = "185";
//The last commit date
public static String Date = "";
//Date and time of the build.
public static String Now = "";
public static String FileLoc = @"Content\SubVersion.dat";
///
/// This will load the SVN info from a text file
///
public static void Load()
{
if (File.Exists(FileLoc))
{
ReadFromFile(FileLoc);
}
}
///
/// Readxs in the svn info
///
///
private static void ReadFromFile(string filename)
{
StreamReader SR;
string S;
SR = File.OpenText(filename);
//Revision Number
S = SR.ReadLine();
Revision = S;
//Date
S = SR.ReadLine();
Date = S;
//Now
S = SR.ReadLine();
Now = S;
SR.Close();
}
}
}