Blueprints & Resources

Added the ability to associate simple commodities with resource maps
Added resource placement to zone generator
Added crafting blueprints and stat addressing system
Refactored Thrusters and Shields into Behaviors
Fixed server losing database connection
Updated icons
This commit is contained in:
hyperion51 2020-04-09 07:48:45 +01:00
commit fd92c80876
58 changed files with 1399 additions and 855 deletions

View file

@ -2,23 +2,20 @@
using MessagePack;
using Newtonsoft.Json;
[RethinkTable("Items")]
[InspectableField]
[MessagePackObject]
[JsonObject(MemberSerialization.OptIn)]
[InspectableField, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
public class SensorBehaviorData : IItemBehaviorData
{
[InspectableField] [JsonProperty("radiance")] [Key(0)]
public PerformanceStat Radiance;
[InspectableField, JsonProperty("radiance"), Key(0)]
public PerformanceStat Radiance = new PerformanceStat();
[InspectableField] [JsonProperty("masking")] [Key(1)]
public PerformanceStat RadianceMasking;
[InspectableField, JsonProperty("masking"), Key(1)]
public PerformanceStat RadianceMasking = new PerformanceStat();
[InspectableField] [JsonProperty("sensitivity")] [Key(2)]
public PerformanceStat Sensitivity;
[InspectableField, JsonProperty("sensitivity"), Key(2)]
public PerformanceStat Sensitivity = new PerformanceStat();
[InspectableField] [JsonProperty("range")] [Key(3)]
public PerformanceStat Range;
[InspectableField, JsonProperty("range"), Key(3)]
public PerformanceStat Range = new PerformanceStat();
public IItemBehavior CreateInstance(GameContext context, Ship ship, Gear item)
{
@ -44,6 +41,10 @@ public class SensorBehavior : IItemBehavior
Context = context;
}
public void Initialize()
{
}
public void Update(float delta)
{
// var ship = Hardpoint.Ship.Ship.transform;