Пример #1
0
        public User(Socket soc, GameServerDLG g_pMain)
        {
            this.socket = soc;
            this.g_pMain = g_pMain;

            Initialize();
            ReceiveUser();
        }
Пример #2
0
 public KOSocket(GameServerDLG g_pMain)
 {
     this.g_pMain = g_pMain;
     isLoginServer = false;
 }
Пример #3
0
        internal bool AddUser(string strUserID, GameServerDLG g_pMain, _KNIGHTS_USER pUser)
        {
            if (m_arKnightsUser.Count >= MAX_CLAN_USERS)
                return false;

            _KNIGHTS_USER pKnightUser = new _KNIGHTS_USER();

            pKnightUser.byUsed = 1;
            pKnightUser.nDonatedNP = 0;
            pKnightUser.pSession = null;
            pKnightUser.strUserName = strUserID;
            pKnightUser.Level = pUser.Level;
            pKnightUser.Fame = pUser.Fame;
            pKnightUser.LastLogin = pUser.LastLogin;
            pKnightUser.strMemo = pUser.strMemo;

            m_arKnightsUser.Add(pKnightUser);
            return true;
        }