Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 732 Bytes

README.md

File metadata and controls

43 lines (38 loc) · 732 Bytes

#Potential Energy Devices This module provides a common set of components that can store energy in an entity.

##Storing Energy ###Basic usage on a prefab

{
  "PotentialEnergyDevice": {
    "maximumStoredEnergy": 50
  }
}

###Defaults

{
  "PotentialEnergyDevice": {
    "currentStoredEnergy": 0
    "maximumStoredEnergy": 0
  }
}

##Energy Regeneration or Decay Adding the PotentialEnergyRegenComponent to an entity that has a PotentialEnergyDeviceComponent on it will continuously add energy to the current stored energy.

###Basic usage on a prefab

{
  "PotentialEnergyRegen": {
    "energyPerSecond": -5
  }
}

###Defaults

{
  "PotentialEnergyRegen": {
    "energyPerSecond": 0
  }
}