refactor: Entities are easier to create now
This commit is contained in:
parent
49baa6c02a
commit
1b8f5a823a
|
@ -1,7 +1,7 @@
|
|||
import {create as createEntity} from '@avocado/entity';
|
||||
import {Entity} from '@avocado/entity';
|
||||
// Create an entity for a new connection.
|
||||
export function createEntityForConnection(socket) {
|
||||
let entity = createEntity();
|
||||
let entity = new Entity();
|
||||
entity = entity.fromJSON({
|
||||
traits: {
|
||||
animated: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user