refactor: Entities are easier to create now

This commit is contained in:
cha0s 2019-04-16 16:40:46 -05:00
parent 49baa6c02a
commit 1b8f5a823a

View File

@ -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: {