Ship Building & Drydock
Made it possible to turn new hulls into drones which can then be outfitted and activated for service Missing blueprint ingredients no longer crash the game and gracefully log what's broken Loadout cargo is now stored entirely separate from gear
This commit is contained in:
parent
7b3c0cad64
commit
a901a8e829
17 changed files with 167 additions and 226 deletions
29
Assets/Scripts/ServerShared/LoadoutData.cs
Normal file
29
Assets/Scripts/ServerShared/LoadoutData.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using MessagePack;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
[RethinkTable("Items"), Inspectable, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class LoadoutData : DatabaseEntry, INamedEntry
|
||||
{
|
||||
[InspectableField, JsonProperty("name"), Key(1)]
|
||||
public string Name;
|
||||
|
||||
[InspectableDatabaseLink(typeof(HullData)), JsonProperty("hull"), Key(2)]
|
||||
public Guid Hull;
|
||||
|
||||
[JsonProperty("items"), Key(3)]
|
||||
public List<Guid> Gear = new List<Guid>();
|
||||
|
||||
[InspectableDatabaseLink(typeof(SimpleCommodityData)), JsonProperty("simpleCargo"), Key(4)]
|
||||
public Dictionary<Guid, int> SimpleCargo = new Dictionary<Guid, int>();
|
||||
|
||||
[InspectableDatabaseLink(typeof(CraftedItemData)), JsonProperty("compoundCargo"), Key(5)]
|
||||
public Dictionary<Guid, int> CompoundCargo = new Dictionary<Guid, int>();
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
{
|
||||
get => Name;
|
||||
set => Name = value;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue