first commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using NitroxModel.DataStructures.GameLogic.Entities.Metadata;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using BinaryPack.Attributes;
|
||||
|
||||
namespace NitroxModel.DataStructures.GameLogic.Entities;
|
||||
|
||||
[Serializable]
|
||||
[DataContract]
|
||||
public class PathBasedChildEntity : Entity
|
||||
{
|
||||
[DataMember(Order = 1)]
|
||||
public string Path { get; set; }
|
||||
|
||||
[IgnoreConstructor]
|
||||
protected PathBasedChildEntity()
|
||||
{
|
||||
// Constructor for serialization. Has to be "protected" for json serialization.
|
||||
}
|
||||
|
||||
/// <remarks>Used for deserialization</remarks>
|
||||
public PathBasedChildEntity(string path, NitroxId id, NitroxTechType techType, EntityMetadata metadata, NitroxId parentId, List<Entity> childEntities)
|
||||
{
|
||||
Path = path;
|
||||
Id = id;
|
||||
TechType = techType;
|
||||
Metadata = metadata;
|
||||
ParentId = parentId;
|
||||
ChildEntities = childEntities;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"[PathBasedChildEntity Path: {Path} {base.ToString()}]";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user