Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 596 Bytes

core.md

File metadata and controls

42 lines (33 loc) · 596 Bytes

Basic Hooks

BDSX-core hooks BDS to make JS usable in BDS.

The pseudo code for original:

fn START_BDS();

fn main() {
    // ...
    START_BDS();
    // ...
}

BDSX-core changes it like below:

fn START_BDS();
fn START_NODE();
fn START_BDSX_SCRIPTS();

fn main() {
    // ...
    START_NODE();
    // ...
}

fn START_NODE() {
    // ...
    START_BDSX_SCRIPTS();
    // ...
}

fn START_BDSX_SCRITPS() {
    // ...
    START_BDS();
    // ...
}

Note: above codes are just pseudo codes. actually they're implemented C++, and JS.