template_ts_component.ts 526 B

12345678910111213141516171819202122232425262728
  1. "atomic component";
  2. /**
  3. * A new component
  4. */
  5. export default class Component extends Atomic.JSComponent {
  6. /**
  7. * Fields witihin the inspectorFields object will be exposed to the editor
  8. */
  9. inspectorFields = {
  10. };
  11. /**
  12. * Called when the component is first added to the node
  13. */
  14. start() {
  15. }
  16. /**
  17. * Update called every cycle with timeStep containing the delta between calls
  18. * @param timeStep time since last call to update
  19. */
  20. update(timeStep: number) {
  21. }
  22. }