473

Creating new node types
Syntax: PROTO

  • A PROTO statement declares a new node type (a prototype)
  • name - the new node type name
  • fields and events - interface to the prototype
  • PROTO Robot [
        field SFColor eyeColor  1.0 0.0 0.0
        . . .
    ] {
        . . .
    }