newspeoplefor developersdocumentationdownloads

Nebula 2 Script Interface

Notes for Users

Select the class you're interested in from the tree below. Each class documents the commands that that class defines, plus a class also inherits commands from its parent. For example nanimator also accepts nscenenode commands, and every class inherits nobject commands.

You can use the command getcmds on any class to see a full list of commands for that class.

The input / output parameter information for each command uses a single letter code to represent the type of the parameter.

  • f - float value
  • i - integer value
  • o - object reference
  • s - string value
  • l - list value
  • b - true|false
  • v - no parameters

Scriptable Classes

Notes for Developers

In order for your commands to be documented here you must put the functions in a file called *_cmds.cc. To describe the class use a comment block like this, usually put in front of the n_initcmds function:

/**
    @ scriptclass
    ntimeserver

    @ superclass
    nroot

    @ classinfo
    The ntimeserver object lives under the name /sys/servers/time
    and provides a central time source for Nebula.
*/

Then put a comment block in front of each script function like this:

/**
    @ cmd
    gettime

    @ input
    v

    @ output
    f (Time)

    @ info
    Return current global time in seconds since the time server
    was created.
*/

This will be output as is so make sure to wrap your text at a reasonable point, and try to use spaces instead of tabs. See any *_cmds.cc file for more detail.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.