예제 #1
0
 public void Add(LogItem i)
 {
     lock (_lock)
     {
         LogItems.Add(i);
     }
 }
 public void LogClientOutgoingNetMessage(int uid, int family, object[] parameters)
 {
     var i = new LogItem();
     i.EntityId = uid;
     i.ComponentFamily = (ComponentFamily)family;
     i.Parameters = parameters;
     i.MessageSource = LogItem.LogMessageType.ClientSentNetMessage;
     LogHolder.Singleton.LogItems.Add(i);
 }
 public void LogServerOutgoingNetMessage(long clientUID, int uid, int family, object[] parameters)
 {
     var i = new LogItem();
     i.ClientId = clientUID;
     i.EntityId = uid;
     i.Parameters = parameters;
     i.MessageSource = LogItem.LogMessageType.ServerSentNetMessage;
     LogHolder.Singleton.LogItems.Add(i);
 }
 public void LogClientIncomingNetMessage(int uid, int entityMessageType, int componentFamily, object[] parameters)
 {
     var i = new LogItem();
     i.EntityId = uid;
     i.EntityMessageType = (EntityMessage)entityMessageType;
     i.ComponentFamily = (ComponentFamily)componentFamily;
     i.Parameters = parameters;
     i.MessageSource = LogItem.LogMessageType.ClientRecievedNetMessage;
     LogHolder.Singleton.LogItems.Add(i);
 }
 public void LogClientComponentMessage(int uid, int senderFamily, string senderType, int componentMessageType)
 {
     var i = new LogItem();
     i.EntityId = uid;
     i.ComponentFamily = (ComponentFamily)senderFamily;
     i.SenderType = senderType;
     i.MessageType = (ComponentMessageType)componentMessageType;
     i.MessageSource = LogItem.LogMessageType.ClientComponentMessage;
     
     LogHolder.Singleton.LogItems.Add(i);
 }