Skip to content

Latest commit

 

History

History

types

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

PlayEGI API

This section contains type declarations for Play's External Game Interface (EGI). The TypeScript language is used for declaring the types, but is merely meant as a convenient way of describing the existing JavaScript library. Any language that can make calls to JavaScript functions may be used to interface with the EGI.

Examples

Settings

let settings: Settings = {
    "duration": { "type": "Time", value: 60000 },
    "bringemon": { "type": "Bool", value: true }
};

Metrics

// Example
let metrics: Metrics = {
    "duration": { "type": "Duration", value: 50000 },
    "points": { "type": "RawInt", value: 2000 }
};