fixed some typos

This commit is contained in:
Dennis Frieberg 2020-08-28 21:05:49 +02:00
parent b2fb6cc094
commit e90b0d389b
2 changed files with 162 additions and 5 deletions

View file

@ -10,14 +10,14 @@ may contain `null` instead of their value type, or may be completely omitted.
## DataTypes
### Tuples
wi will write tuples types as `<(A,B)>` for a Tuple containing something of `A` and
We will write tuples types as `<(A,B)>` for a Tuple containing something of `A` and
something of `B`. We will encode this as a JSON Array of length n, where n is the
length of the tuple.
For example a Value of `<(Number,String)>` might be `[5,"Hello World!"]`
### Lists
we will write `[A]` for the type of Lists containing stuff of type `A`. These are
encoded by Arrrays of arbitrary length.
encoded by Arrays of arbitrary length.
### Tick
#### TickType
@ -31,7 +31,7 @@ A Tick is an Object of the following form:
"TickValue" : <Number>
}
```
The TickValue field is only requiered if the "TickType" field contains the Value "Tick"
The TickValue field is only required if the "TickType" field contains the Value "Tick"
### Player
#### UUID
@ -62,7 +62,7 @@ you don't know that Player you should add it.
"PlayerName" : <String>
}
```
Remark: `<Maybe null>` allows you to optionaly include this field with a `null` value. But
Remark: `<Maybe null>` allows you to optionally include this field with a `null` value. But
you might omit it.
UnknownPlayer are used to introduce new Player to the Server.
@ -134,7 +134,7 @@ This is used to change the name of a Player without moving them.
"Player" : <KnownPlayer>
}
```
If you don't set the name in KnownPlayer no namechange will occur.
If you don't set the name in KnownPlayer no name change will occur.
## Events
A Server might Send the following Events to a client.