mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-02-14 19:29:57 +01:00
35 lines
913 B
C#
35 lines
913 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations;
|
|
|
|
namespace Content.Shared._WL.Languages.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class ModifyLanguagesComponent : Component
|
|
{
|
|
[DataField]
|
|
public bool ToRemove = false;
|
|
|
|
[DataField]
|
|
public bool ToUnderstood = true;
|
|
|
|
[DataField]
|
|
public bool ToSpeaking = true;
|
|
|
|
[DataField]
|
|
public bool SpecieLanguage = false;
|
|
|
|
[DataField]
|
|
public List<ProtoId<LanguagePrototype>> Languages = [];
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class State : ComponentState
|
|
{
|
|
public bool ToRemove = default!;
|
|
public bool ToUnderstood = default!;
|
|
public bool ToSpeaking = default!;
|
|
public List<ProtoId<LanguagePrototype>> Languages = default!;
|
|
}
|
|
}
|