Skip to content

Creating Packages

Oleh Saveniuk edited this page May 13, 2020 · 14 revisions

1. Fork this repository and create a branch

You'll do your work in this branch in order to submit the package later.

2. Create a directory structure for the package

└── packages
    └── g.frame.{package_name} 

3. Create a package module

Extend it from the core AbstractModule

  • preInit - Make sure, that module is supported. Return true or false.
  • onInit - Module initialization..
  • afterInit - Loads all needed agents.
  • getModuleContainer - Returns container with Object3D of the module

4. Install your package locally and try it out

Add the package to examples and test them.

5. Submit a Pull Request