C# Class Godot.IcsModel.StockBooker

Inheritance: IStockBooker
Show file Open project: Slesa/Playground

Public Methods

Method Description
BookItemIntoStock ( Stock stock, decimal quantity, Unit unit, RecipeableItem recipeableItem ) : StockItem
BookItemOutOfStock ( Stock stock, decimal quantity, Unit unit, RecipeableItem recipeableItem ) : StockItem
StockBooker ( IUnitConverter unitConverter ) : System

Private Methods

Method Description
FindStockItem ( Stock stock, Unit unit, RecipeableItem recipeableItem, bool createIfNotExists ) : StockItem

Method Details

BookItemIntoStock() public method

public BookItemIntoStock ( Stock stock, decimal quantity, Unit unit, RecipeableItem recipeableItem ) : StockItem
stock Godot.IcsModel.Entities.Stock
quantity decimal
unit Godot.IcsModel.Entities.Unit
recipeableItem Godot.IcsModel.Entities.RecipeableItem
return Godot.IcsModel.Entities.StockItem

BookItemOutOfStock() public method

public BookItemOutOfStock ( Stock stock, decimal quantity, Unit unit, RecipeableItem recipeableItem ) : StockItem
stock Godot.IcsModel.Entities.Stock
quantity decimal
unit Godot.IcsModel.Entities.Unit
recipeableItem Godot.IcsModel.Entities.RecipeableItem
return Godot.IcsModel.Entities.StockItem

StockBooker() public method

public StockBooker ( IUnitConverter unitConverter ) : System
unitConverter IUnitConverter
return System