New Mining Controller Behavior and Mining Tool Behavior, tweaked a bunch of asteroid related stuff
This commit is contained in:
hyperion51 2020-05-28 04:50:40 +01:00
commit 399b933a38
22 changed files with 609 additions and 58 deletions

View file

@ -8,6 +8,7 @@ using UnityEngine;
[MessagePackObject,
Union(0, typeof(StationTowing)),
Union(1, typeof(Mining)),
JsonObject(MemberSerialization.OptIn), JsonConverter(typeof(JsonKnownTypesConverter<DatabaseEntry>))]
public abstract class AgentTask : DatabaseEntry
{
@ -25,6 +26,7 @@ public abstract class AgentTask : DatabaseEntry
public enum TaskType
{
None,
Mine,
Haul,
Tow,

View file

@ -0,0 +1,24 @@
using System;
using System.Collections;
using System.Collections.Generic;
using JsonKnownTypes;
using MessagePack;
using Newtonsoft.Json;
[MessagePackObject,
JsonObject(MemberSerialization.OptIn), JsonConverter(typeof(JsonKnownTypesConverter<DatabaseEntry>))]
public class Mining : AgentTask
{
[IgnoreMember] public override TaskType Type => TaskType.Mine;
[JsonProperty("asteroids"), Key(4)]
public Guid Asteroids;
// public StationTowing(Guid zone, Guid station, Guid orbitParent, float orbitDistance)
// {
// Zone = zone;
// Station = station;
// OrbitParent = orbitParent;
// OrbitDistance = orbitDistance;
// }
}

View file

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