forge.class
    Preparing search index...

    Interface IClassData

    A class, as a class file exports it.

    interface IClassData {
        extends?: string;
        fields?: Record<string, FieldDefault>;
        methods?: Record<string, string | IMethodData>;
        name: string;
    }
    Index
    extends?: string

    The parent class.

    fields?: Record<string, FieldDefault>

    Defaults by field name. Modifiers go before the name: "private hp": 100.

    methods?: Record<string, string | IMethodData>

    Methods by name, as code or with params. Modifiers go before the name, constructor is the constructor.

    name: string

    The class name. Adding a class with the same name replaces it.