UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

13 lines (9 loc) 323 B
import {AbstractPropertyBinding} from "./AbstractPropertyBinding"; export class PrimitivePropertyBinding<V> extends AbstractPropertyBinding<V> { public get(): V { return this.parent[this.property_name] as V; } public set(v: V): void { this.parent[this.property_name] = v; } }