示例#1
0
 public CPlayer(CClient sClient)
 {
     Client             = sClient;
     Session            = new CSession();
     Session.ClientID   = 0;
     Session.CtlCode    = 0;
     Session.isInGame   = false;
     Session.isLoggedIn = false;
     Session.password   = "";
     Session.username   = "";
     CharInfo           = new CInfo();
     CharInfo.CharID    = 0;
     CharInfo.BodyID    = 0;
     CharInfo.CharName  = "";
     CharInfo.Class     = 0;
     CharInfo.cLevel    = 0;
     CharInfo.cExp      = 0;
     CharInfo.cGold     = 0;
     CharInfo.MasterPts = 0;
     CharInfo.sGold     = 0;
     CharInfo.SkillPts  = 0;
     CharInfo.StatPts   = 0;
     Inventory          = new CItem[78];
     for (int i = 0; i < 78; i++)
     {
         ClearItem(Inventory[i]);
     }
 }
示例#2
0
 public CNpc()
 {
     NpcInfo           = new CInfo();
     NpcInfo.BodyID    = 0;
     NpcInfo.cExp      = 0;
     NpcInfo.cGold     = 0;
     NpcInfo.ChaosPts  = 0;
     NpcInfo.CharID    = 0;
     NpcInfo.CharName  = null;
     NpcInfo.Class     = 0;
     NpcInfo.cLevel    = 0;
     NpcInfo.MasterPts = 0;
     NpcInfo.sGold     = 0;
     NpcInfo.SkillPts  = 0;
     NpcInfo.StatPts   = 0;
     NpcFile           = null;
 }