PROJECT: added common library to make common files actually common

- renamed sln to FFXIVClassic.sln
- threaded logging
- todo: print packets using Log.Packet
This commit is contained in:
Tahir Akhlaq 2016-06-12 20:12:59 +01:00
parent 16d4779970
commit c23f9c7ca9
53 changed files with 547 additions and 1817 deletions

View file

@ -1,4 +1,4 @@
using FFXIVClassic_Map_Server.common;
using FFXIVClassic.Common;
using System;
using System.Collections.Generic;
using System.IO;
@ -89,9 +89,9 @@ namespace FFXIVClassic_Map_Server.Actors
}
}
catch(FileNotFoundException e)
{ Log.Error("Could not find staticactors file."); return false; }
{ Program.Log.Error("Could not find staticactors file."); return false; }
Log.Info(String.Format("Loaded {0} static actors.", mStaticActors.Count()));
Program.Log.Info(String.Format("Loaded {0} static actors.", mStaticActors.Count()));
return true;
}

View file

@ -1,4 +1,4 @@
using FFXIVClassic_Map_Server.common;
using FFXIVClassic.Common;
using FFXIVClassic_Map_Server.packets;
using FFXIVClassic_Map_Server.actors;
using FFXIVClassic_Map_Server.Actors.Chara;
@ -238,7 +238,7 @@ namespace FFXIVClassic_Map_Server.Actors
}
catch (MySqlException e)
{
Log.Error(e.ToString());
Program.Log.Error(e.ToString());
}
finally
{

View file

@ -1,4 +1,4 @@
using FFXIVClassic_Map_Server.common;
using FFXIVClassic.Common;
using FFXIVClassic_Map_Server.packets;
using FFXIVClassic_Map_Server.actors.chara.player;
using FFXIVClassic_Map_Server.actors.director;
@ -642,7 +642,7 @@ namespace FFXIVClassic_Map_Server.Actors
Database.savePlayerPlayTime(this);
Database.savePlayerPosition(this);
Log.Info(String.Format("{0} has been logged out and saved.", this.customDisplayName));
Program.Log.Info(String.Format("{0} has been logged out and saved.", this.customDisplayName));
}
public Area getZone()

View file

@ -1,4 +1,4 @@
using FFXIVClassic_Map_Server.common;
using FFXIVClassic.Common;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
@ -68,7 +68,7 @@ namespace FFXIVClassic_Map_Server.Actors
{
if (bitIndex >= 32)
{
Log.Error(String.Format("Tried to access bit flag >= 32 for questId: {0}", actorId));
Program.Log.Error(String.Format("Tried to access bit flag >= 32 for questId: {0}", actorId));
return;
}
@ -86,7 +86,7 @@ namespace FFXIVClassic_Map_Server.Actors
{
if (bitIndex >= 32)
{
Log.Error(String.Format("Tried to access bit flag >= 32 for questId: {0}", actorId));
Program.Log.Error(String.Format("Tried to access bit flag >= 32 for questId: {0}", actorId));
return false;
}
else