User:Erorr404/Editor/design

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

resource

  file
     interface

editor_main

  elements.lua
     bool setMoveMode(int)
     int getMoveMode()
     bool selectElement(element)
     element getSelectedElement()
     bool deselectElement()
     bool mountElement(bool)

move_keyboard

  // preconditions: none
  bool attachElement(element)
  element getAttachedElement()
  bool detachElement()
  void ignoreWalls(bool)

move_cursor

  // precondition: cursor must be showing
  bool attachElement(element)
  element getAttachedElement()
  bool detachElement()
  void ignoreWalls(bool)

move_freecam

  // precondition: camera mode must be fixed
  bool attachElement(element)
  element getAttachedElement()
  bool detachElement()
  void ignoreWalls(bool)