npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.spellboundar.items

v4.4.0

Published

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

Downloads

14

Readme

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