Skip to content

Releases: The-Chest/TheChest.Core

v0.3.0

22 Sep 14:40
8e37673
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

What's Added

  • Inventory<T> implements IInventory<T>
    • A container that permit to change its contents
  • InventorySlot<T> implements IInventorySlot<T>
    • A Slot that permit to change its contents

What's Changed

  • Removed obsolete from
    • IInventory<T>
    • IInteractiveContainer<out T>
    • IStackInventory<T>
  • CreateRandom and CreateManyRandom methods to SlotItemFactory
  • Example project folder structure
  • ISlot<T>.Content now returns T?
  • InventorySlotEventType references removed for now
  • ISlotItemFactory.CreateItem is now called ISlotItemFactory.CreateDefault

Known Issues

  • #12 - IStackSlot<T> and ILazyStackSlot<T> tests not working together

Full Changelog: v0.2.0...v0.3.0

v0.2.0

15 Sep 21:21
7e7814a
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

What's Added

  • ILazyStackSlot<T>
    • implements ISlot<ICollection<T>>
  • IStackSlot<T>
    • implements ISlot<ICollection<T>>
  • StackSlot<T>
    • A Slot that have lots of items inside it
  • LazyStackSlot<T>
    • A Slot that have the same copy of the item inside it

What's Changed

  • IStackSlot<T> now is ILazyStackSlot<T>
  • StackSlot<T> and LazyStackSlot<T> implements ISlot<ICollection<T>>
  • Improvements to summary docs
  • Removed Base prefix from base classes and removed abstract keyword
    • BaseContainer<T> to Container<T>
    • BaseStackContainer<T> to LazyStackContainer<T>
    • BaseSlot<T> to Slot<T>
    • BaseStackSlot<T> to LazyStackSlot<T>
  • Removed Base prefix from factory classes
    • BaseContainerFactory<T> to ContainerFactory<T>
    • BaseStackContainerFactory<T> to LazyStackContainerFactory<T>
    • BaseSlotFactory<T> to SlotFactory<T>
    • BaseStackSlotFactory<T> to LazyStackSlotFactory<T>
  • Removed Generics from interface namespaces of Slots and Containers
  • Base from factory namespaces of Slots and Containers

Known Issues

  • #12 - IStackSlot<T> and ILazyStackSlot<T> tests not working together

Full Changelog: v0.1.1...v0.2.0

v0.1.1

03 Aug 20:41
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release

What's Added

  • Unit tests to BaseContainer<T> and BaseStackContainer<T>
  • Unit tests to BaseSlot<T> and BaseStackSlot<T>
  • Example projects - TheChest.Example.ConsoleApp

What's Changed

  • BaseStackSlot<T>(T[] items, int maxStack) now calls base class constructor BaseSlot<T>(T item)

Known Issues

  • No documentation yet
  • No unit tests to Inventory features yet

Full Changelog: https://github.com/The-Chest/the-chest-core/pull/4/commits

v0.1.0

03 Aug 20:22
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

What's Added

  • Base project architecture migrated from the-chest-unity
    • Base classes
      • BaseContainer<T> - Generic container with IContainer<T> implementation
      • BaseStackContainer<T> - Generic container with IStackContainer<T> implementation
      • BaseInventory<T> - Generic Inventory with IInventory<T> implementation
      • BaseStackInventory<T> - Generic Inventory with IStackInventory<T> implementation
      • BaseInventorySlot<T> - Generic Slot Inventory with IInventorySlot<T> implementation
      • BaseInventoryStackSlot<T> - Generic Slot Inventory with IStackInventorySlot<T> implementation
    • Interfaces
      • IContainer<T> - Interface with basic features of a Container with ISlot<T> slots
      • IStackContainer<T> - Interface with basic features of a Container with IStackSlot<T> slots
      • IInteractiveContainer<T> - Interface with methods for interaction with the Container
      • IInventory<T> - Interface with methods for interaction with the Inventory with IInventorySlot<T> slots
      • IStackInventory<T> - Interface with methods for interaction with the Inventory using IInventoryStackSlot<T> slots
      • ISlot<T> - Interface with properties for a basic Slot
      • IStackSlot<T> - Interface Container with properties for a basic Stack Slot
      • IInventorySlot<T> - Interface with methods for a basic Inventory Slot
      • IInventoryStackSlot<T> - Interface with methods for a basic Inventory Stackable Slot

Known Issues

  • No documentation yet
  • No unit tests yet

Full Changelog: https://github.com/The-Chest/the-chest-core/pull/5/commits