4.4.0 • Published 1 year ago

com.spellboundar.items v4.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Items

Version: 4.4.0

Description:

A framework for working with items, item-types, and item-instances.

Dependencies:

  • com.unity.localization (1.3.2)
  • com.iron-mountain.resource-utilities (1.1.3)
  • com.iron-mountain.save-system (1.0.4)

Key Scripts & Components:

  1. public class BasicItemTypeData
    • Properties:
      • public String ID { get; set; }
      • public String Name { get; }
      • public Sprite Depiction { get; }
      • public String LocalizedName { get; }
      • public String Description { get; set; }
      • public Boolean ShowInInventory { get; set; }
      • public List Instances { get; }
    • Methods:
      • public virtual Object InstantiateAnInstance(Transform parent)
      • public virtual void OnValidate()
  2. public class Database : ScriptableObject
    • Properties:
      • public List Types { get; }
    • Methods:
      • public ScriptedItemTypeData GetItemTypeByName(String itemTypeName)
      • public ScriptedItemTypeData GetItemTypeByID(String itemTypeID)
      • public ScriptedItemTypeData GetRandomItemType()
      • public void SortList()
      • public void RebuildDictionary()
      • public override String ToString()
  3. public interface IItem
  4. public interface IItemInstanceData
    • Actions:
      • public event Action OnVisibleChanged
      • public event Action OnInteractableChanged
      • public event Action OnInteractionCountChanged
    • Properties:
      • public String ID { get; set; }
      • public String Name { get; }
      • public IItemTypeData Type { get; set; }
      • public Boolean Visible { get; set; }
      • public Boolean Interactable { get; set; }
      • public Int32 InteractionCount { get; set; }
    • Methods:
      • public abstract void OnValidate()
      • public abstract void RefreshName()
  5. public interface IItemTypeData
    • Properties:
      • public String ID { get; set; }
      • public String Name { get; }
      • public Sprite Depiction { get; }
      • public String LocalizedName { get; }
      • public String Description { get; }
      • public Boolean ShowInInventory { get; }
      • public List Instances { get; }
    • Methods:
      • public abstract Object InstantiateAnInstance(Transform parent)
      • public abstract void OnValidate()
  6. public class Item : MonoBehaviour
    • Actions:
      • public event Action OnVisibleChanged
      • public event Action OnInteractableChanged
      • public event Action OnInteractionCountChanged
    • Properties:
      • public IItemTypeData Type { get; set; }
      • public Int32 InteractionCount { get; set; }
      • public String ID { get; set; }
      • public String Name { get; }
      • public Sprite Depiction { get; }
      • public String LocalizedName { get; }
      • public String Description { get; }
      • public Boolean ShowInInventory { get; }
      • public List Instances { get; }
      • public Boolean Visible { get; set; }
      • public Boolean Interactable { get; set; }
    • Methods:
      • public virtual Object InstantiateAnInstance(Transform parent)
      • public virtual void RefreshName()
      • public virtual void OnValidate()
  7. public static class ItemsManager
  8. public class ScriptedItemInstanceData : ScriptableObject
    • Actions:
      • public event Action OnVisibleChanged
      • public event Action OnInteractableChanged
      • public event Action OnInteractionCountChanged
    • Properties:
      • public String ID { get; set; }
      • public ScriptedItemTypeData ScriptedItemTypeData { get; set; }
      • public String Name { get; }
      • public IItemTypeData Type { get; set; }
      • public Boolean InitiallyVisible { get; }
      • public Boolean InitiallyInteractable { get; }
      • public Boolean Visible { get; set; }
      • public Boolean Interactable { get; set; }
      • public Int32 InteractionCount { get; set; }
    • Methods:
      • public void Reset()
      • public virtual void OnValidate()
      • public virtual void RefreshName()
  9. public class ScriptedItemTypeData : ScriptableObject
    • Properties:
      • public String ID { get; set; }
      • public String Name { get; }
      • public String LocalizedName { get; }
      • public Sprite Depiction { get; }
      • public String Description { get; }
      • public Boolean ShowInInventory { get; }
      • public List ScriptedInstances { get; }
      • public List Instances { get; }
    • Methods:
      • public virtual Object InstantiateAnInstance(Transform parent)
      • public void Reset()
      • public virtual void OnValidate()
      • public void GenerateNewID()
      • public virtual Boolean HasErrors()
  10. public class ScriptedItemTypeDataList : ScriptableObject
    • Properties:
      • public List ItemTypes { get; }

Inventories

  1. public class BasicInventoryEntry
    • Actions:
      • public event Action OnQuantityChanged
      • public event Action OnViewsChanged
    • Properties:
      • public IItemTypeData ItemTypeData { get; }
      • public String ItemTypeID { get; }
      • public Int32 Quantity { get; set; }
      • public Int32 Views { get; set; }
      • public DateTime Timestamp { get; }
  2. public interface IInventory
    • Actions:
      • public event Action OnEntriesChanged
    • Properties:
      • public String ID { get; }
    • Methods:
      • public abstract List`1 GetAllEntries()
      • public abstract IInventoryEntry GetEntry(IItemTypeData itemTypeData)
      • public abstract void Add(IItemTypeData itemTypeData, Int32 quantity)
      • public abstract void Remove(IItemTypeData itemTypeData, Int32 quantity)
      • public abstract void RemoveAll(IItemTypeData itemTypeData)
      • public abstract void Clear()
      • public virtual Int32 GetItemQuantity(IItemTypeData itemTypeData)
      • public virtual List`1 GetEntries()
  3. public interface IInventoryEntry
    • Actions:
      • public event Action OnQuantityChanged
      • public event Action OnViewsChanged
    • Properties:
      • public String ItemTypeID { get; }
      • public IItemTypeData ItemTypeData { get; }
      • public DateTime Timestamp { get; }
      • public Int32 Quantity { get; set; }
      • public Int32 Views { get; set; }
  4. public class SavedInventory
    • Actions:
      • public event Action OnEntriesChanged
    • Properties:
      • public String ID { get; }
      • public String Directory { get; set; }
    • Methods:
      • public virtual List`1 GetAllEntries()
      • public virtual IInventoryEntry GetEntry(IItemTypeData itemTypeData)
      • public virtual void Add(IItemTypeData itemTypeData, Int32 quantity)
      • public virtual void Remove(IItemTypeData itemTypeData, Int32 amount)
      • public virtual void RemoveAll(IItemTypeData itemTypeData)
      • public virtual void Clear()
  5. public class SavedInventoryEntry
    • Actions:
      • public event Action OnQuantityChanged
      • public event Action OnViewsChanged
    • Properties:
      • public String Directory { get; }
      • public String ItemTypeID { get; }
      • public IItemTypeData ItemTypeData { get; }
      • public Int32 Quantity { get; set; }
      • public Int32 Views { get; set; }
      • public DateTime Timestamp { get; }
  6. public class SavedInventoryMonoBehaviour : MonoBehaviour
    • Actions:
      • public event Action OnEntriesChanged
    • Properties:
      • public SavedInventory SavedInventory { get; }
      • public String ID { get; }
    • Methods:
      • public void InvokeOnEntriesChanged()
      • public virtual List`1 GetAllEntries()
      • public virtual IInventoryEntry GetEntry(IItemTypeData itemTypeData)
      • public virtual void Add(IItemTypeData itemTypeData, Int32 quantity)
      • public virtual void Remove(IItemTypeData itemTypeData, Int32 quantity)
      • public virtual void RemoveAll(IItemTypeData itemTypeData)
      • public virtual void Clear()
  7. public class SavedInventoryScriptableObject : ScriptableObject
    • Actions:
      • public event Action OnEntriesChanged
    • Properties:
      • public SavedInventory SavedInventory { get; }
      • public String ID { get; }
    • Methods:
      • public void InvokeOnEntriesChanged()
      • public virtual List`1 GetAllEntries()
      • public virtual IInventoryEntry GetEntry(IItemTypeData itemTypeData)
      • public virtual void Add(IItemTypeData itemTypeData, Int32 quantity)
      • public virtual void Remove(IItemTypeData itemTypeData, Int32 quantity)
      • public virtual void RemoveAll(IItemTypeData itemTypeData)
      • public virtual void Clear()

Inventories. U I

  1. public class InventoryDisplay : MonoBehaviour
    • Properties:
      • public IInventory Inventory { get; set; }
    • Methods:
      • public void Refresh()
  2. public class InventoryEntryDisplay : MonoBehaviour
    • Actions:
      • public event Action OnEntryChanged
    • Properties:
      • public IInventoryEntry Entry { get; set; }
  3. public class InventoryEntryDisplayImage : MonoBehaviour
  4. public class InventoryEntryDisplayNameText : MonoBehaviour
  5. public class InventoryEntryDisplayQuantityText : MonoBehaviour

Selections. Static

  1. public class StaticSelectedItemTypeImage : MonoBehaviour
  2. public static class StaticSelectedItemTypeManager

Selections. U I

  1. public class ItemTypeSelectionButton : MonoBehaviour
    • Actions:
      • public event Action OnMenuChanged
      • public event Action OnItemTypeChanged
      • public event Action OnIsSelectedChanged
    • Properties:
      • public ScriptedItemTypeData ScriptedItemTypeData { get; }
      • public Boolean IsSelected { get; }
    • Methods:
      • public void Initialize(ItemTypeSelectionMenu menu, ScriptedItemTypeData scriptedItemTypeData)
  2. public class ItemTypeSelectionButtonImage : MonoBehaviour
  3. public class ItemTypeSelectionButtonOutline : MonoBehaviour
    • Methods:
      • public void Awake()
  4. public class ItemTypeSelectionMenu : MonoBehaviour
    • Actions:
      • public event Action OnSelectionChanged
      • public event Action OnSelectionChangedTo
    • Properties:
      • public IItemTypeData PreviousSelection { get; }
      • public IItemTypeData CurrentSelection { get; set; }
      • public ScriptedItemTypeDataList Items { get; set; }
  5. public class NextItemTypeButton : MonoBehaviour
    • Properties:
      • public ItemTypeSelectionMenu ItemTypeSelectionMenu { get; set; }
  6. public class PreviousItemTypeButton : MonoBehaviour
    • Properties:
      • public ItemTypeSelectionMenu ItemTypeSelectionMenu { get; set; }

V F X

  1. public class ItemVFXVisibilityScaling : MonoBehaviour
4.4.0

1 year ago

4.3.6

1 year ago

4.3.5

1 year ago

4.3.8

1 year ago

4.3.7

1 year ago

4.3.4

1 year ago

4.3.2

1 year ago

4.2.3

1 year ago

4.3.1

1 year ago

4.3.3

1 year ago

4.3.0

1 year ago

4.2.2

1 year ago

4.2.1

1 year ago

4.2.0

1 year ago

4.0.9

2 years ago

4.0.8

2 years ago

2.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

4.0.5

2 years ago

4.0.4

2 years ago

4.0.7

2 years ago

4.0.6

2 years ago

4.1.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

4.1.2

2 years ago

4.0.3

2 years ago

4.1.1

2 years ago

4.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago