Counter
Arena
constructor
name
foreach
ref
register
unref
get_
default
new_
for_
pid
GJS API Reference
Egg-1.0
Egg
CounterArena
Class CounterArena
Hierarchy
CounterArena
Index
Constructors
constructor
Properties
name
Methods
foreach
ref
register
unref
get_
default
new_
for_
pid
Constructors
constructor
new
Counter
Arena
(
)
:
Egg
.
CounterArena
Returns
Egg
.
CounterArena
Properties
Static
name
name
:
string
Methods
foreach
foreach
(
func
:
Egg
.
CounterForeachFunc
)
:
void
Calls
func
for every counter found in
area
.
Parameters
func:
Egg
.
CounterForeachFunc
A callback to execute
Returns
void
ref
ref
(
)
:
Egg
.
CounterArena
Returns
Egg
.
CounterArena
register
register
(
counter
:
Egg
.
Counter
)
:
void
Parameters
counter:
Egg
.
Counter
Returns
void
unref
unref
(
)
:
void
Returns
void
Static
get_
default
get_
default
(
)
:
Egg
.
CounterArena
Returns
Egg
.
CounterArena
Static
new_
for_
pid
new_
for_
pid
(
pid
:
number
)
:
Egg
.
CounterArena
Parameters
pid:
number
Returns
Egg
.
CounterArena
Counter
Arena
constructor
name
foreach
ref
register
unref
get_
default
new_
for_
pid
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJFZ2dfMV8wLkVnZy5Db3VudGVyQXJlbmEuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIHRzZC1pcy1zdGF0aWMiLCJocmVmIjoiRWdnXzFfMC5FZ2cuQ291bnRlckFyZW5hLmh0bWwjbmFtZSIsIm5hbWUiOiJuYW1lIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6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