mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-03-18 11:50:42 +00:00
* Move /common/src to /src * Move services to net.psforever package * Move /pslogin to /server
19 lines
580 B
Scala
19 lines
580 B
Scala
// Copyright (c) 2017 PSForever
|
|
package net.psforever.objects
|
|
|
|
import net.psforever.objects.definition.KitDefinition
|
|
import net.psforever.objects.equipment.Equipment
|
|
|
|
/**
|
|
* A one-time-use recovery item that can be applied by the player while held within their inventory.
|
|
* @param kitDef the `ObjectDefinition` that constructs this item and maintains some of its immutable fields
|
|
*/
|
|
class Kit(private val kitDef: KitDefinition) extends Equipment {
|
|
def Definition: KitDefinition = kitDef
|
|
}
|
|
|
|
object Kit {
|
|
def apply(kitDef: KitDefinition): Kit = {
|
|
new Kit(kitDef)
|
|
}
|
|
}
|