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

@ -57,7 +57,7 @@ public class ZoneGeneratorTest : MonoBehaviour
void Start()
{
_cache = new DatabaseCache();
_context = new GameContext(_cache);
_context = new GameContext(_cache, Debug.Log);
_boundaryMaterial = ZoneBoundary.material;
}
@ -105,10 +105,10 @@ public class ZoneGeneratorTest : MonoBehaviour
ZoneGenerator.GenerateZone(
global: Galaxy.MapData.GlobalData,
zone: zone,
mass: Galaxy.MapData.ResourceDensities.First(m=>m.Name=="Mass"),
radius: Galaxy.MapData.ResourceDensities.First(m=>m.Name=="Radius"),
mapLayers: Galaxy.MapData.ResourceDensities,
resources: Array.Empty<SimpleCommodityData>(),
orbitData: out orbits,
planetData: out planets);
planetsData: out planets);
_cache.AddAll(orbits);
_cache.AddAll(planets);
_cache.Add(zone);