Added a control module which enables drones to haul items from colony to colony Added confirmation dialog for actions which require confirmation, can have fields added to it just like a PropertiesPanel Moving items between inventories now displays confirmation dialog
23 lines
503 B
C#
23 lines
503 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using MessagePack;
|
|
using Newtonsoft.Json;
|
|
using UnityEngine;
|
|
|
|
public class HaulingTask : AgentTask
|
|
{
|
|
public override TaskType Type => TaskType.Haul;
|
|
|
|
[JsonProperty("origin"), Key(4)]
|
|
public Guid Origin;
|
|
|
|
[JsonProperty("target"), Key(5)]
|
|
public Guid Target;
|
|
|
|
[JsonProperty("itemType"), Key(6)]
|
|
public Guid ItemType;
|
|
|
|
[JsonProperty("quantity"), Key(7)]
|
|
public int Quantity;
|
|
}
|