Skip to content

Commit

Permalink
add world registry
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Mar 28, 2024
1 parent 6922ac1 commit ee72253
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 158 deletions.
19 changes: 0 additions & 19 deletions social/dwn/protocols/dwn-limits.json

This file was deleted.

19 changes: 0 additions & 19 deletions social/dwn/protocols/profile.json

This file was deleted.

19 changes: 0 additions & 19 deletions social/dwn/protocols/world-limits.json

This file was deleted.

36 changes: 36 additions & 0 deletions social/dwn/protocols/world-registry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"protocol": "https://wired-protocol.org/v0/protocols/world-registry.json",
"types": {
"world": {
"schema": "https://wired-protocol.org/v0/schemas/world.json",
"dataFormats": ["application/json"]
},
"instance": {
"schema": "https://wired-protocol.org/v0/schemas/instance.json",
"dataFormats": ["application/json"]
}
},
"structure": {
"world": {
"$actions": [
{
"who": "anyone",
"can": "read"
},
{
"who": "anyone",
"can": "write"
}
],
"instance": {
"$actions": [
{
"who": "recipient",
"of": "world",
"can": "write"
}
]
}
}
}
}
41 changes: 0 additions & 41 deletions social/dwn/protocols/world.json

This file was deleted.

20 changes: 0 additions & 20 deletions social/dwn/schemas/dwn-limits.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://wired-protocol.org/v0/schemas/world-limits.json",
"$id": "https://wired-protocol.org/v0/schemas/instance.json",
"type": "object",
"properties": {
"url": {
"type": "string"
},
"numPlayers": {
"type": "number"
},
"maxPlayers": {
"description": "Maximum number of players allowed in the world",
"minimum": 0,
"type": "number"
},
"extras": {
Expand Down
34 changes: 0 additions & 34 deletions social/dwn/schemas/world-metadata.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "https://wired-protocol.org/v0/schemas/profile-metadata.json",
"$id": "https://wired-protocol.org/v0/schemas/world.json",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"bio": {
"description": {
"type": "string"
},
"image": {
"type": "string"
},
"links": {
"tags": {
"type": "array",
"items": {
"type": "string"
Expand Down

0 comments on commit ee72253

Please sign in to comment.