Example #1
0
 public PersistedAccountData()
 {
     SchemaVersion             = new SchemaVersion <AccountSchemaChange>();
     AccountComponent          = new AccountComponent();
     AdminComponent            = new AdminComponent();
     BankComponent             = new BankComponent(new List <CurrencyData>());
     ExperienceComponent       = new ExperienceComponent();
     ExperienceComponent.Level = 0;
     InventoryComponent        = new InventoryComponent();
     SocialComponent           = new SocialComponent();
     CharacterData             = new Dictionary <CharacterType, PersistedCharacterData>();
     AddedMatchData            = new List <PersistedCharacterMatchData>();
     QuestComponent            = new QuestComponent();
 }
Example #2
0
 public PersistedAccountData CloneForClient()
 {
     return(new PersistedAccountData
     {
         AccountId = AccountId,
         UserName = UserName,
         Handle = Handle,
         SchemaVersion = SchemaVersion,
         CreateDate = CreateDate,
         UpdateDate = UpdateDate,
         AccountComponent = AccountComponent,
         AdminComponent = AdminComponent.CloneForClient(),
         BankComponent = BankComponent,
         ExperienceComponent = ExperienceComponent,
         InventoryComponent = InventoryComponent.CloneForClient(),
         SocialComponent = SocialComponent,
         QuestComponent = QuestComponent
     });
 }