Skip to content

Commit

Permalink
Better init
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Sep 6, 2024
1 parent 0009c18 commit 394e91d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions app/app.view.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
namespace $.$$ {

export class $piterjs_app extends $.$piterjs_app {

@ $mol_mem
domain_id() {
return 'n6cy9h_41olxb' as $mol_int62_string
}

@ $mol_mem
domain_rights() {
const land_id = this.domain_id()
return new Uint8Array( $mol_fetch.buffer( require( `/piterjs/app/${land_id}!${land_id}.bin` ) ) )
}

@ $mol_mem
Domain() {

const yard = super.Yard()
const land_id = 'n6cy9h_41olxb' as $mol_int62_string

const rights = new Uint8Array( $mol_fetch.buffer( require( `/piterjs/app/${land_id}!${land_id}.bin` ) ) )
$mol_wire_sync( yard.world() ).apply( rights )
$mol_wire_sync( yard.world() ).apply( this.domain_rights() )

return this.Yard().world().Fund( $piterjs_domain ).Item( land_id )
return yard.world().Fund( $piterjs_domain ).Item( this.domain_id() )

}

Expand Down

0 comments on commit 394e91d

Please sign in to comment.