mirror of
https://github.com/sebastian-heinz/Arrowgene.DragonsDogmaOnline
synced 2026-08-03 11:12:41 -04:00
Adds serverside translation based on a player-set locale. See DispelGetLockSettingsHandler for example usage. Accounts now have a locale field, which is set via a new /locale command. A new server asset has been created, allowing for JSON files in the localization folder to be used to translate text sent by the server into the account's language of choice. See Files/Assets/localization/BitterblackSealing.en-US.json as an example of the format.
28 lines
869 B
C#
28 lines
869 B
C#
using System;
|
|
|
|
namespace Arrowgene.Ddon.Database.Model
|
|
{
|
|
public class Account
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string NormalName { get; set; }
|
|
public string Hash { get; set; }
|
|
public string Mail { get; set; }
|
|
public string MailToken { get; set; }
|
|
public string PasswordToken { get; set; }
|
|
public string LoginToken { get; set; }
|
|
public DateTime? LoginTokenCreated { get; set; }
|
|
public bool MailVerified { get; set; }
|
|
public DateTime? MailVerifiedAt { get; set; }
|
|
public AccountStateType State { get; set; }
|
|
public DateTime? LastAuthentication { get; set; }
|
|
public DateTime Created { get; set; }
|
|
public string Locale { get; set; }
|
|
|
|
public Account()
|
|
{
|
|
Id = -1;
|
|
}
|
|
}
|
|
}
|