Missing Database Reference Hotfix
Database inspector was crashing when selecting a blueprint with missing ingredients
This commit is contained in:
parent
588d89a5d0
commit
8d1b7bed28
10 changed files with 115 additions and 29 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
19
Assets/Scripts/ServerShared/Agents/StationTowing.cs
Normal file
19
Assets/Scripts/ServerShared/Agents/StationTowing.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/ServerShared/Agents/StationTowing.cs.meta
Normal file
11
Assets/Scripts/ServerShared/Agents/StationTowing.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c8845fb5e89a4bf46abdf94517139172
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in a new issue