mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
14 lines
276 B
JavaScript
14 lines
276 B
JavaScript
Type.registerNamespace("Demo");
|
|
|
|
// Define an enumeration type and register it.
|
|
Demo.Color = function(){};
|
|
Demo.Color.prototype =
|
|
{
|
|
Red: 0xFF0000,
|
|
Blue: 0x0000FF,
|
|
Green: 0x00FF00,
|
|
White: 0xFFFFFF
|
|
}
|
|
Demo.Color.registerEnum("Demo.Color");
|
|
|