We now have a context menu UI for in-game actions, right click on an item to activate Database view has a progress bar (finally!) Data structures for Megacorps and loadouts Towing task complete? needs testing
34 lines
721 B
C#
34 lines
721 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using JsonKnownTypes;
|
|
using MessagePack;
|
|
using Newtonsoft.Json;
|
|
using UnityEngine;
|
|
|
|
[MessagePackObject,
|
|
Union(0, typeof(StationTowing)),
|
|
JsonObject(MemberSerialization.OptIn), JsonConverter(typeof(JsonKnownTypesConverter<DatabaseEntry>))]
|
|
public abstract class AgentTask : DatabaseEntry
|
|
{
|
|
[JsonProperty("priority"), Key(1)]
|
|
public int Priority;
|
|
|
|
[JsonProperty("zone"), Key(2)]
|
|
public Guid Zone;
|
|
|
|
[JsonProperty("reserved"), Key(3)]
|
|
public bool Reserved;
|
|
|
|
[IgnoreMember] public abstract TaskType Type { get; }
|
|
}
|
|
|
|
public enum TaskType
|
|
{
|
|
Mine,
|
|
Haul,
|
|
Tow,
|
|
Defend,
|
|
Attack,
|
|
Explore
|
|
}
|