implement brush cost gauges
they're a little ugly at the moment, and can be a little useless for most simple brushes, but whatever we'll make them better later
This commit is contained in:
parent
43e6951f7d
commit
913d65b0a8
19 changed files with 378 additions and 65 deletions
|
@ -89,6 +89,19 @@ export class User {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
getStats(wallInfo) {
|
||||
return {
|
||||
astSize: this.haku.astSize,
|
||||
astSizeMax: wallInfo.hakuLimits.ast_capacity,
|
||||
numRefs: this.haku.numRefs,
|
||||
numRefsMax: wallInfo.hakuLimits.ref_capacity,
|
||||
fuel: wallInfo.hakuLimits.fuel - this.haku.remainingFuel,
|
||||
fuelMax: wallInfo.hakuLimits.fuel,
|
||||
memory: wallInfo.hakuLimits.memory - this.haku.remainingMemory,
|
||||
memoryMax: wallInfo.hakuLimits.memory,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class OnlineUsers extends EventTarget {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue