mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04: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:
@@ -1,4 +1,4 @@
|
||||
using FFXIVClassic_Map_Server.common;
|
||||
using FFXIVClassic.Common;
|
||||
using System;
|
||||
|
||||
namespace FFXIVClassic_Map_Server.utils
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using FFXIVClassic_Map_Server.common;
|
||||
using FFXIVClassic.Common;
|
||||
using FFXIVClassic_Map_Server.packets.send.player;
|
||||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
@@ -79,14 +79,14 @@ namespace FFXIVClassic_Map_Server.utils
|
||||
|
||||
cmd.Parameters["@placename"].Value = placenames[pId];
|
||||
|
||||
Log.Debug(String.Format("Wrote: {0}", id));
|
||||
Program.Log.Debug(String.Format("Wrote: {0}", id));
|
||||
cmd.ExecuteNonQuery();
|
||||
|
||||
}
|
||||
}
|
||||
catch (MySqlException e)
|
||||
{
|
||||
Log.Error(e.ToString());
|
||||
Program.Log.Error(e.ToString());
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -137,14 +137,14 @@ namespace FFXIVClassic_Map_Server.utils
|
||||
cmd.Parameters["@id"].Value = id;
|
||||
cmd.Parameters["@displayNameId"].Value = nameId;
|
||||
|
||||
Log.Debug(String.Format("Wrote: {0} : {1}", id, nameId));
|
||||
Program.Log.Debug(String.Format("Wrote: {0} : {1}", id, nameId));
|
||||
cmd.ExecuteNonQuery();
|
||||
|
||||
}
|
||||
}
|
||||
catch (MySqlException e)
|
||||
{
|
||||
Log.Error(e.ToString());
|
||||
Program.Log.Error(e.ToString());
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -203,14 +203,14 @@ namespace FFXIVClassic_Map_Server.utils
|
||||
|
||||
cmd.Parameters["@id"].Value = id;
|
||||
|
||||
Log.Debug(String.Format("Wrote: {0}", id));
|
||||
Program.Log.Debug(String.Format("Wrote: {0}", id));
|
||||
cmd.ExecuteNonQuery();
|
||||
|
||||
}
|
||||
}
|
||||
catch (MySqlException e)
|
||||
{
|
||||
Log.Error(e.ToString());
|
||||
Program.Log.Error(e.ToString());
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -288,7 +288,7 @@ namespace FFXIVClassic_Map_Server.utils
|
||||
else if (id == 1500)
|
||||
otherId = SetCompletedAchievementsPacket.CATEGORY_GRAND_COMPANY;
|
||||
|
||||
Log.Debug(String.Format("Wrote: {0} : {1} : {2} : {3}", id, name, otherId, points));
|
||||
Program.Log.Debug(String.Format("Wrote: {0} : {1} : {2} : {3}", id, name, otherId, points));
|
||||
cmd.Parameters["@id"].Value = id;
|
||||
cmd.Parameters["@name"].Value = name;
|
||||
cmd.Parameters["@otherId"].Value = otherId;
|
||||
@@ -300,7 +300,7 @@ namespace FFXIVClassic_Map_Server.utils
|
||||
}
|
||||
catch (MySqlException e)
|
||||
{
|
||||
Log.Error(e.ToString());
|
||||
Program.Log.Error(e.ToString());
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -338,7 +338,7 @@ namespace FFXIVClassic_Map_Server.utils
|
||||
|
||||
string output2 = String.Format("mStaticActors.Add(0x{0:x}, new {2}(0x{0:x}, \"{1}\"));", id, output.Substring(1 + output.LastIndexOf("/")), output.Split('/')[1]);
|
||||
|
||||
Log.Debug(output2);
|
||||
Program.Log.Debug(output2);
|
||||
w.WriteLine(output2);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user