Skip to content

Commit

Permalink
Update fromBinary docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdingena committed Sep 13, 2023
1 parent 628b48f commit 963869b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Entity.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Reads the binary string data and returns an instantiated entity.
```ts
import { Entity } from 'att-string-transcoder';

const torchFireEntity = Entity.fromBinary<'Torch'>(myBinaryString);
const torchFireEntity = Entity.fromBinary<'Torch'>(binaryReader, { key, hash });
```

## Properties
Expand Down
2 changes: 1 addition & 1 deletion src/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class Entity<TPrefabName extends ATTPrefabName> {
* @example
* import { Entity } from 'att-string-transcoder';
*
* const torchFireEntity = Entity.fromBinary<'Torch'>(myBinaryString);
* const torchFireEntity = Entity.fromBinary<'Torch'>(binaryReader, { key, hash });
*/
static fromBinary<TPrefabName extends ATTPrefabName>(
reader: BinaryReader,
Expand Down

0 comments on commit 963869b

Please sign in to comment.