Missing Database Reference Hotfix

Database inspector was crashing when selecting a blueprint with missing ingredients
This commit is contained in:
hyperion51 2020-04-29 23:36:00 +01:00
commit 8d1b7bed28
10 changed files with 115 additions and 29 deletions

View file

@ -1,10 +1,13 @@
using System.Collections;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class AgentTask
{
public abstract AgentJob JobType { get; }
public int Priority;
public Guid Zone;
}
public enum AgentJob
@ -13,5 +16,6 @@ public enum AgentJob
Haul,
Tow,
Defend,
Attack
Attack,
Explore
}

View file

@ -0,0 +1,19 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StationTowing : AgentTask
{
public override AgentJob JobType => AgentJob.Tow;
private Guid _entity;
private Guid _targetOrbit;
public StationTowing(Guid zone, Guid entity, Guid targetOrbit)
{
Zone = zone;
_entity = entity;
_targetOrbit = targetOrbit;
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c8845fb5e89a4bf46abdf94517139172
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: