Exemple #1
0
        public static Level GetPlayer(long id, bool persistent = false)
        {
            Level level = ResourcesManager.GetInMemoryPlayer(id);

            if (level == null)
            {
                level = ResourcesManager.m_vDatabase.GetAccount(id);
                if (persistent)
                {
                    ResourcesManager.LoadLevel(level);
                }
            }
            return(level);
        }