public void LoadData(UserData.UserData data) { this.LoadAchievements(data.achievements); this.LoadFavorites(data.favouritedRooms); this.LoadRoomRights(data.RoomRightsList); //this.LoadTags(data.tags); }
public void Init(GameClient client, UserData.UserData data) { this.mClient = client; this.BadgeComponent = new BadgeComponent(this.Id, data.badges); this.InventoryComponent = new InventoryComponent(this.Id, client); this.InventoryComponent.SetActiveState(client); this.quests = data.quests; this.chatMessageManager = new ChatMessageManager(); this.chatMessageManager.LoadUserChatlogs(this.Id); this.Messenger = new HabboMessenger(this.Id); this.Messenger.AppearOffline = this.HideOnline; this.Messenger.Init(data.friends, data.requests, data.Relationships); this.MyGroups = data.MyGroups; this.UpdateRooms(); }