Production

object Production

Types

ProductionTracker
Link copied to clipboard
class ProductionTracker(id: Int, make: Boolean)

Functions

contains
Link copied to clipboard
fun List<Production.ProductionTracker>.contains(id: Int, make: Boolean): Boolean

Need to check for make / use as well otherwise if two scripts are ran after each other that use opposing make/use for the same id There will exist a ProductionTracker for the provided id that does the other make/use

getForId
Link copied to clipboard

If the ProductionTracker for id does not exist yet, it creates and adds a new one to the list of trackers

stoppedMaking
Link copied to clipboard
fun stoppedMaking(id: Int, time: Long = 5000): Boolean
stoppedUsing
Link copied to clipboard
fun stoppedUsing(id: Int, time: Long = 5000): Boolean
track
Link copied to clipboard
fun track(id: Int, make: Boolean = true)

Add last made timer

Properties

trackers
Link copied to clipboard
val trackers: MutableList<Production.ProductionTracker>

Map to keep track of when an item was last made.