Exemplo n.º 1
0
Arquivo: Habbo.cs Projeto: habb0/IHI-1
        private void Init()
        {
            _loginId     = new ResettableLazyDirty <int>(() => HabboActions.GetLoginIdFromHabboId(Id));
            _username    = new ResettableLazyDirty <string>(() => HabboActions.GetHabboUsernameFromHabboId(Id));
            _dateCreated = new ResettableLazyDirty <DateTime>(() => HabboActions.GetCreationDateFromHabboId(Id));
            _lastAccess  = new ResettableLazyDirty <DateTime>(() => HabboActions.GetLastAccessDateFromHabboId(Id));
            _credits     = new ResettableLazyDirty <int>(() => HabboActions.GetCreditsFromHabboId(Id));

            _instanceStorage   = new InstanceStorage();
            _persistentStorage = new PersistentStorage(this);

            _permissions = new ResettableLazyDirty <IDictionary <string, PermissionState> >(() => CoreManager.ServerCore.PermissionDistributor.GetHabboPermissions(this));

            _figure = new ResettableLazyDirty <HabboFigure>(() => LoadFigure());
            _motto  = new ResettableLazyDirty <string>(() => HabboActions.GetMottoFromHabboId(Id));

            MessengerCategories = new HashSet <MessengerCategory>();
        }
Exemplo n.º 2
0
Arquivo: Habbo.cs Projeto: habb0/IHI-1
        private void Init()
        {
            _loginId = new ResettableLazyDirty<int>(() => HabboActions.GetLoginIdFromHabboId(Id));
            _username = new ResettableLazyDirty<string>(() => HabboActions.GetHabboUsernameFromHabboId(Id));
            _dateCreated = new ResettableLazyDirty<DateTime>(() => HabboActions.GetCreationDateFromHabboId(Id));
            _lastAccess = new ResettableLazyDirty<DateTime>(() => HabboActions.GetLastAccessDateFromHabboId(Id));
            _credits = new ResettableLazyDirty<int>(() => HabboActions.GetCreditsFromHabboId(Id));

            _instanceStorage = new InstanceStorage();
            _persistentStorage = new PersistentStorage(this);

            _permissions = new ResettableLazyDirty<IDictionary<string, PermissionState>>(() => CoreManager.ServerCore.PermissionDistributor.GetHabboPermissions(this));

            _figure = new ResettableLazyDirty<HabboFigure>(() => LoadFigure());
            _motto = new ResettableLazyDirty<string>(() => HabboActions.GetMottoFromHabboId(Id));

            MessengerCategories = new HashSet<MessengerCategory>();
        }