first commit
This commit is contained in:
27
NitroxServer/Serialization/World/WorldData.cs
Normal file
27
NitroxServer/Serialization/World/WorldData.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using NitroxModel.DataStructures;
|
||||
using NitroxServer.GameLogic.Bases;
|
||||
|
||||
namespace NitroxServer.Serialization.World
|
||||
{
|
||||
[DataContract]
|
||||
public class WorldData
|
||||
{
|
||||
[DataMember(Order = 1)]
|
||||
public List<NitroxInt3> ParsedBatchCells { get; set; } = [];
|
||||
|
||||
[DataMember(Order = 2)]
|
||||
public GameData GameData { get; set; }
|
||||
|
||||
[DataMember(Order = 3)]
|
||||
public string Seed { get; set; }
|
||||
|
||||
public bool IsValid()
|
||||
{
|
||||
return ParsedBatchCells != null &&
|
||||
GameData != null &&
|
||||
Seed != null;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user