31 lines
877 B
C#
31 lines
877 B
C#
using Sandbox.Citizen;
|
|
|
|
namespace Sasalka;
|
|
|
|
[GameResource( "Inventory Item Definition", "inv", "", Category = "Sasalka", Icon = "inventory_2" )]
|
|
public class InventoryItemDefinition : GameResource
|
|
{
|
|
public Inventar.InventorySlot Slot { get; set; }
|
|
|
|
public CitizenAnimationHelper.HoldTypes HoldType { get; set; } = CitizenAnimationHelper.HoldTypes.None;
|
|
|
|
public Texture ImageTexture { get; set; }
|
|
|
|
public string ImageUrl { get; set; }
|
|
public string ClothUrl { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
[ResourceType( "prefab" )] public GameObject Prefab { get; set; }
|
|
|
|
[InlineEditor, Space] public WeaponDefinition WeaponDefinition { get; set; }
|
|
}
|
|
|
|
public struct WeaponDefinition
|
|
{
|
|
// public CitizenAnimationHelper.Hand Hand { get; set; }
|
|
public Vector3 Position { get; set; }
|
|
public Rotation Rotation { get; set; }
|
|
}
|