first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using BinaryPack.Attributes;
|
||||
using NitroxModel.DataStructures.Unity;
|
||||
|
||||
namespace NitroxModel.DataStructures.GameLogic.Entities.Metadata;
|
||||
|
||||
[Serializable]
|
||||
[DataContract]
|
||||
public class SeamothMetadata : VehicleMetadata
|
||||
{
|
||||
[DataMember(Order = 1)]
|
||||
public bool LightsOn { get; }
|
||||
|
||||
[IgnoreConstructor]
|
||||
protected SeamothMetadata()
|
||||
{
|
||||
// Constructor for serialization. Has to be "protected" for json serialization.
|
||||
}
|
||||
|
||||
public SeamothMetadata(bool lightsOn, float health, string name, NitroxVector3[] colors) : base(health, name, colors)
|
||||
{
|
||||
LightsOn = lightsOn;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"[{nameof(SeamothMetadata)} LightsOn: {LightsOn} {base.ToString()}]";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user