示例#1
0
文件: User.cs 项目: habb0/IHI
 /// <summary>
 /// Cleans up the online values when nobody is using them.
 /// </summary>
 public void StopLoggedInValues()
 {
     OnlineValueCounter--;
     if (OnlineValueCounter == 0)
     {
         this.fConnection = null;
         this.fPacketSender = null;
         this.fPacketProcessor = null;
         this.fSessionValues = null;
         this.fFuseRights = null;
     }
 }
示例#2
0
文件: User.cs 项目: habb0/IHI
 /// <summary>
 /// Construct a prelogin User object.
 /// DO NOT USE THIS FOR GETTING A USER - USE THE USER DISTRIBUTOR
 /// </summary>
 internal User(IonTcpConnection Connection)
 {
     this.fConnection = Connection;
     this.fPacketSender = new PacketSender(this);
     this.fPacketProcessor = new PacketProcessor(this);
 }