Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/candybox2/candybox2.github.io
/ addItem
Method
addItem
code/main/SecondHouse.ts:70–72 ·
view source on GitHub ↗
(item: CandyMerchantItem)
Source
from the content-addressed store, hash-verified
68
69
// Private methods
70
private addItem(item: CandyMerchantItem): void{
71
this.items.push(item);
72
}
73
74
private buySelectedItem(): void{
75
// If we have enough candies to buy it
Callers
1
constructor
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected