mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-21 18:15:59 +02:00
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:
parent
16d4779970
commit
c23f9c7ca9
53 changed files with 547 additions and 1817 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue