Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Create Classes

Vlad Pazych edited this page Feb 16, 2017 · 1 revision
import { Matcher, ecsClass } from '../../lib/lib';
import alias from '../alias'
import contexts from '../contexts';
import components from '../components';
import interfacesCommon from '../ecsInterfaces/common'

class all {
    someService = ecsClass()
        .PropContext(contexts.core)
        .Implement(interfacesCommon.someDoable)
        .Method("DoSomeStuff", alias.void)
        .Comment("Some Comment for intellisense docs and HTML API Refence")
        .Ucomponent()

    someOtherService = ecsClass()
        .Inherit(this.someService.GetClassName())
        .Method("DoSomeMuchCoolerStuff", alias.void)
        .Ucomponent()
};

export default new all();
Clone this wiki locally