Mining
New Mining Controller Behavior and Mining Tool Behavior, tweaked a bunch of asteroid related stuff
This commit is contained in:
parent
7b33c21cd7
commit
399b933a38
22 changed files with 609 additions and 58 deletions
|
|
@ -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,
|
||||
|
|
|
|||
24
Assets/Scripts/ServerShared/Agents/Mining.cs
Normal file
24
Assets/Scripts/ServerShared/Agents/Mining.cs
Normal 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;
|
||||
// }
|
||||
}
|
||||
11
Assets/Scripts/ServerShared/Agents/Mining.cs.meta
Normal file
11
Assets/Scripts/ServerShared/Agents/Mining.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6e4409ff5e14e06468f205574cc67a3c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in a new issue