Restore the stable legacy Unity project
This commit is contained in:
parent
56a156ee87
commit
7006a6b0dd
2070 changed files with 180490 additions and 169303 deletions
29
Assets/Scripts/ServerShared/PlayerData.cs
Normal file
29
Assets/Scripts/ServerShared/PlayerData.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
using System;
|
||||
using MessagePack;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
[RethinkTable("Users"), MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class PlayerData : DatabaseEntry, INamedEntry
|
||||
{
|
||||
[JsonProperty("email"), Key(1)]
|
||||
public string Email;
|
||||
|
||||
[JsonProperty("password"), Key(2)]
|
||||
public string Password;
|
||||
|
||||
[JsonProperty("username"), Key(3)]
|
||||
public string Username;
|
||||
|
||||
[JsonProperty("corporation"), Key(4)]
|
||||
public Guid Corporation;
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
{
|
||||
get => Username;
|
||||
set => Username = value;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue