User Tools

Site Tools


script:language

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
script:language [2019-11-17 20:37] – [Modules] skyjakescript:language [2019-12-15 16:08] (current) – [Modules] skyjake
Line 1: Line 1:
 +====== Doomsday Script language ======
 +
 +===== Built-ins =====
 +
 +==== Built-in types ====
 +
 +  *  Number
 +  *  Text
 +  *  Time
 +  *  Array
 +  *  Dictionary
 +  *  Function
 +  *  Record
 +
 +
 +==== Built-in constants ====
 +
 +  *  True
 +  *  False
 +  *  None
 +  *  Pi
 +
 +
 +==== Built-in functions ====
 +
 +
 +^ Function ^ Description |
 +| ''deserialize'' | reconstruct data from an array of bytes |
 +| ''dictkeys'' | returns the keys of a dictionary as an array |
 +| ''dictvalues''| returns the values of a dictionary as an array |
 +| ''dir'' | returns the variable names of a namespace as an array |
 +| ''eval'' | parses and executes argument as a script, returns result |
 +| ''File'' | returns a [[Core.File]] object |
 +| ''floor'' | rounds a number down to an integer |
 +| ''globals'' | returns the global namespace as a record |
 +| ''len'' | determines the length/size of the argument |
 +| ''locals'' | returns the local namespace as a record |
 +| ''members'' | returns the members of a record as a dictionary |
 +| ''Number'' | converts argument to a number value |
 +| ''Record'' | duplicates a record or creates an empty one |
 +| ''serialize'' | serializes data into an array of bytes |
 +| ''subrecords'' | returns the subrecords of a record as a dictionary |
 +| ''Text'' | converts argument to a text string |
 +| ''Time'' | converts argument to a Time |
 +| ''timedelta'' | calculates difference between two Times (as seconds) |
 +| ''typeof'' | returns type of a value as a text string |
 +
 +
 +===== Modules =====
 +
 +The Doomsday Script Standard Library consists of a collection of native built-in modules and script modules. Applications also provide a number of built-in modules for scripts.
 +
 +  ; [[.module:App]] : application core
 +  ; [[.module:Audio]] : audio subsystem
 +  ; [[.module:clientconfig]] : client application configuration variables (imported by [[.module:Config]])
 +  ; [[.module:Config]] : configuration variables (special persistent namespace)
 +  ; [[.module:Console]] : console variables
 +  ; [[.module:Core]] : built-in classes and core language functionality
 +  ; [[.module:Defs]] : definitions read from [[:DED]] files
 +  ; [[.module:DisplayMode]] : information about display modes
 +  ; [[.module:Game]] : bindings for the game plugin
 +  ; [[.module:gui]] : routines related to the graphical user interface (stdlib.gui)
 +  ; [[.module:Input]] : input subsystem
 +  ; [[.module:Math]] : math routines
 +  ; [[.module:recutil]] : routines for manipulating records (stdlib)
 +  ; [[.module:Render]] : graphics and rendering 
 +  ; [[.module:SavedSession]] : routines for manipulating savegames
 +  ; [[.module:Version]] : version information
 +  ; [[.module:World]] : game world
 +
  
script/language.txt · Last modified: 2019-12-15 16:08 by skyjake