Skip to content

Commit abf411d

Browse files
committed
Renamed common.js to model.js
1 parent 6d5bbb1 commit abf411d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ You can easily combine this library with the Snapshot Interpolation library [@ge
3737

3838
## Usage
3939

40-
#### common.js
40+
#### model.js
4141

4242
```js
4343
import { BufferSchema, Model } from '@geckos.io/typed-array-buffer-schema'
@@ -69,7 +69,7 @@ export const mainModel = new Model(mainSchema)
6969
#### server.js
7070

7171
```js
72-
import { mainModel } from './common.js'
72+
import { mainModel } from './model'
7373

7474
const gameState = {
7575
time: new Date().getTime(),
@@ -99,7 +99,7 @@ sendMessage(buffer)
9999
#### client.js
100100

101101
```js
102-
import { mainModel } from './common.js'
102+
import { mainModel } from './model'
103103

104104
onMessage(buffer => {
105105
// access your game state

0 commit comments

Comments
 (0)