Server Initialization and Serverside Galaxy/Zone Delivery

Made the master server connect to the database and now it's listening for and responding correctly to GalaxyRequestMessages and ZoneRequestMessages, generating the zone contents if they do not yet exist.
This commit is contained in:
hyperion51 2020-03-27 01:53:03 +00:00
commit f8a6582154
34 changed files with 845 additions and 115 deletions

View file

@ -36,6 +36,7 @@ public abstract class ItemData : DatabaseEntry, INamedEntry
}
}
[RethinkTable("Items")]
[Inspectable]
[MessagePackObject]
public class SimpleCommodityData : ItemData {}
@ -54,6 +55,7 @@ public abstract class CraftedItemData : ItemData
public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
}
[RethinkTable("Items")]
[Inspectable]
[MessagePackObject]
public class CompoundCommodityData : CraftedItemData {}
@ -123,6 +125,7 @@ public abstract class EquippableItemData : CraftedItemData
}
}
[RethinkTable("Items")]
[Inspectable]
[MessagePackObject]
[JsonObject(MemberSerialization.OptIn)]
@ -133,6 +136,7 @@ public class GearData : EquippableItemData
[IgnoreMember] public override HardpointType HardpointType => Hardpoint;
}
[RethinkTable("Items")]
[Inspectable]
[MessagePackObject]
[JsonObject(MemberSerialization.OptIn)]
@ -165,6 +169,7 @@ public class HullData : EquippableItemData
[IgnoreMember] public override HardpointType HardpointType => HardpointType.Hull;
}
[RethinkTable("Items")]
[InspectableField]
[MessagePackObject]
[JsonObject(MemberSerialization.OptIn)]
@ -174,6 +179,7 @@ public class HardpointData
public HardpointType Type;
}
[RethinkTable("Items")]
[Inspectable]
[MessagePackObject]
[JsonObject(MemberSerialization.OptIn)]
@ -188,6 +194,7 @@ public class ShieldData : EquippableItemData
[IgnoreMember] public override HardpointType HardpointType => HardpointType.Shield;
}
[RethinkTable("Items")]
[Inspectable]
[MessagePackObject]
[JsonObject(MemberSerialization.OptIn)]