import { EntityEditState } from './entity.state.edit' ; import * as Toolkit from 'chipmunk.client.toolkit' ; export class Entity < T > { private _guid : string ; private _entity : T ; private _editState : EntityEditState = new EntityEditState ( ) ; constructor ( entity , guid ? ) { this . _entity = entity ; this . _guid = guid === undefined ? Toolkit . guid ( ) : guid ; } public getGUID ( ) { return this . _guid ; } public getEntity ( ) { return this . _entity ; } public setEntity ( entity ) { this . _entity = entity ; } public getEditState ( ) { return this . _editState ; } }