forked from EphemeralSpace/ephemeral-space
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCharacterComponent.cs
More file actions
29 lines (22 loc) · 848 Bytes
/
CharacterComponent.cs
File metadata and controls
29 lines (22 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using Content.Shared.Preferences;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared._ES.Auditions;
/// <summary>
/// This is used for marking the character of components.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class CharacterComponent : Component
{
public string Name => Profile.Name;
[DataField, AutoNetworkedField]
public DateTime DateOfBirth;
[DataField, AutoNetworkedField]
public Dictionary<EntityUid, ProtoId<RelationshipPrototype>> Relationships = new ();
[DataField, AutoNetworkedField]
public ProtoId<BackgroundPrototype> Background;
[DataField, AutoNetworkedField]
public List<EntityUid> Memories = new ();
[DataField, AutoNetworkedField]
public HumanoidCharacterProfile Profile;
}