39 lines
900 B
C#
39 lines
900 B
C#
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using Unity.Mathematics;
|
|
using static Unity.Mathematics.math;
|
|
|
|
public abstract class ItemInstance
|
|
{
|
|
public RuntimeCatalogLink<ItemData> Data;
|
|
public ItemRotation Rotation;
|
|
}
|
|
|
|
public abstract class CraftedItemInstance : ItemInstance
|
|
{
|
|
public float Quality;
|
|
}
|
|
|
|
public class CompoundCommodity : CraftedItemInstance { }
|
|
|
|
public class SimpleCommodity : ItemInstance
|
|
{
|
|
public int Quantity;
|
|
}
|
|
|
|
public class EquippableItem : CraftedItemInstance
|
|
{
|
|
public float Durability;
|
|
public bool OverrideShutdown;
|
|
}
|
|
|
|
public class ConsumableItem : CraftedItemInstance
|
|
{
|
|
}
|