vertecs
Version:
A typescript entity-component-system framework
33 lines (24 loc) • 750 B
text/typescript
// @ts-ignore
import { BodyOptions, Body } from "oimo";
import { Component } from "../core";
export type OimoComponentOptions = Exclude<BodyOptions, "rot" | "pos">;
export default class OimoComponent extends Component {
readonly
public constructor(bodyOptions: OimoComponentOptions) {
super();
this.
}
public get bodyOptions(): BodyOptions {
return this.
}
public get body(): Body | undefined {
return this.
}
public set body(body: Body | undefined) {
this.
}
public clone(): Component {
return new OimoComponent(this.
}
}