Skip to content
Snippets Groups Projects
Commit cc7de449 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Added new item interfaces for different item types.

parent a0f07491
No related branches found
No related tags found
1 merge request!35Massive rework of inventory system.
......@@ -10,7 +10,7 @@ namespace BigSock.Item {
/*
A class that represents an item that an effect when a condition is meet.
*/
public abstract class ConditionalItemBase : ItemBase {
public abstract class ConditionalItemBase : IConditionalItem {
public static readonly System.Random RND = new System.Random();
......
using System.Collections;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
namespace BigSock.Item {
/*
An interface for items that trigger on a particular condition.
*/
public interface IConditionalItem : IInactiveItem {
/*
The type of trigger this item uses.
*/
TriggerType Trigger { get; }
}
}
\ No newline at end of file
using System.Collections;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
namespace BigSock.Item {
/*
An interface an item that isn't an active item.
*/
public interface IInactiveItem : IItem {
}
}
\ No newline at end of file
using System.Collections;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
namespace BigSock.Item {
/*
An interface for items that are passive.
*/
public interface IPassiveItem : IInactiveItem {
/*
The modifier of the item.
*/
ICharacterStats Modifier { get; set; }
}
}
\ No newline at end of file
......@@ -10,7 +10,7 @@ namespace BigSock.Item {
/*
A class that represents an item that provides passive stat boosts.
*/
public abstract class PassiveItemBase : ItemBase {
public abstract class PassiveItemBase : IPassiveItem {
/*
The modifier of the item.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment