forked from SubnauticaNitrox/Nitrox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeypadMetadata.cs
More file actions
33 lines (27 loc) · 802 Bytes
/
KeypadMetadata.cs
File metadata and controls
33 lines (27 loc) · 802 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
30
31
32
33
using System;
using System.Runtime.Serialization;
using BinaryPack.Attributes;
namespace NitroxModel.DataStructures.GameLogic.Entities.Metadata;
[Serializable]
[DataContract]
public class KeypadMetadata : EntityMetadata
{
[DataMember(Order = 1)]
public bool Unlocked { get; }
[DataMember(Order = 2)]
public string PathFromRoot { get; }
[IgnoreConstructor]
protected KeypadMetadata()
{
// Constructor for serialization. Has to be "protected" for json serialization.
}
public KeypadMetadata(bool unlocked, string pathFromRoot)
{
Unlocked = unlocked;
PathFromRoot = pathFromRoot;
}
public override string ToString()
{
return $"[{nameof(KeypadMetadata)} Unlocked: {Unlocked}, PathFromRoot: {PathFromRoot}]";
}
}