Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ energy
Method
energy
source/game/StarNpc.cpp:1053–1055 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1051
}
1052
1053
float Npc::energy() const {
1054
return m_statusController->resource(
"energy"
);
1055
}
1056
1057
bool Npc::energyLocked() const {
1058
return m_statusController->resourceLocked(
"energy"
);
Callers
3
writePlayerData
Method · 0.45
ownerEnergy
Method · 0.45
updateRunning
Method · 0.45
Calls
1
resource
Method · 0.45
Tested by
no test coverage detected