/// <summary> /// Diplay sthe build version saved at the assembly /// </summary> static void DisplayBuildVersion() { System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly(); FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location); string version = fvi.FileVersion; Debug.Log($"Build Version: {version} "); DisplayBuildDate(); }
static void Main(string[] args) { Debug.Log("Initializing the database adapter."); //This is a vital thing in order to proceed the queries Adapter.Initialize("localhost", 3306, "root", "", "newgame"); Debug.Log("Starting our realtime server."); NetworkServer server = new NetworkServer("127.0.0.1", 3000); //Coordinators initialization //@todo Make them different threads not only instances LoginCoordinator loginServer = new LoginCoordinator(server); StoreCoordinator storeServer = new StoreCoordinator(server); GameCoordinator gameServer = new GameCoordinator(server); //Show repo information DisplayRepoInformation(); //Display Build Version DisplayBuildVersion(); //Server must start after all sub-servers being initialized server.Start(); }
public static void DisplayRepoInformation() { Debug.Log("Unity server created by Enigma \n Repository: github.com/underfisk/UnityRealtimeServer"); }
/// <summary> /// Displays the build date /// </summary> static void DisplayBuildDate() { var date = GetLinkerTime(Assembly.GetExecutingAssembly(), TimeZoneInfo.Local); Debug.Log($"Build date: {date}"); }