Context
Direct Subclass:
Static Method Summary
| Static Public Methods | ||
| public static |
inherit(data: *): * |
|
| public static |
register(cls: *) |
|
| public static |
super(): * Used by overlay property getters. |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
state: * |
|
| Private Members | ||
| private |
_inside_map: {} |
|
| private |
_props: * |
|
| private |
_stack: *[] |
|
Method Summary
| Public Methods | ||
| public |
|
|
| public |
copy(): * |
|
| public |
ensureProperty(name: *) |
|
| public |
|
|
| public |
fix() |
|
| public |
getOverlay(cls: *): * |
|
| public |
getOwningOverlay(name: *, _val_out: *): * |
|
| public |
hasOverlay(cls: *): * |
|
| public |
loadProperty(ctx: *, key: *, data: *): * lookup property based on saved data |
|
| public |
|
|
| public |
override(overrides: *): * |
|
| public |
popOverlay(overlay: *) |
|
| public |
|
|
| public |
pushOverlay(overlay: *) |
|
| public |
removeOverlay(overlay: *) |
|
| public |
|
|
| public |
saveProperty(key: *): * saves a property into some kind of non-object-reference form |
|
| public |
toLocked(): * Returns a new context that doesn't contain any direct object references except for .state .datalib and .api, but instead uses those three to look up references on property access. |
|
| public |
|
|
| public |
|
|
| Private Methods | ||
| private |
_fix() chrome's debug console corrupts this._inside_map, this method fixes it |
|
Static Public Methods
public static register(cls: *) source
Params:
| Name | Type | Attribute | Description |
| cls | * |
public static super(): * source
Used by overlay property getters. If returned, the next overlay in the struct will have its getter used.
Example:
class overlay { get scene() { if (some_reason) { return Context.super(); }
return something_else; } }
Return:
| * |
Public Constructors
public constructor() source
Public Members
public state: * source
Private Members
private _inside_map: {} source
private _props: * source
private _stack: *[] source
Public Methods
public clear(have_new_file: boolean) source
Params:
| Name | Type | Attribute | Description |
| have_new_file | boolean |
|
public ensureProperty(name: *) source
Params:
| Name | Type | Attribute | Description |
| name | * |
public error(message: *, timeout: number): * source
Params:
| Name | Type | Attribute | Description |
| message | * | ||
| timeout | number |
|
Return:
| * |
public fix() source
public getOwningOverlay(name: *, _val_out: *): * source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| _val_out | * |
Return:
| * |
public loadProperty(ctx: *, key: *, data: *): * source
lookup property based on saved data
Params:
| Name | Type | Attribute | Description |
| ctx | * | ||
| key | * | ||
| data | * |
Return:
| * |
public message(msg: *, timeout: number): * source
Params:
| Name | Type | Attribute | Description |
| msg | * | ||
| timeout | number |
|
Return:
| * |
public popOverlay(overlay: *) source
Params:
| Name | Type | Attribute | Description |
| overlay | * |
public pushOverlay(overlay: *) source
Params:
| Name | Type | Attribute | Description |
| overlay | * |
public removeOverlay(overlay: *) source
Params:
| Name | Type | Attribute | Description |
| overlay | * |
public reset(have_new_file: boolean) source
Params:
| Name | Type | Attribute | Description |
| have_new_file | boolean |
|
public saveProperty(key: *): * source
saves a property into some kind of non-object-reference form
Params:
| Name | Type | Attribute | Description |
| key | * |
Return:
| * |
public toLocked(): * source
Returns a new context that doesn't contain any direct object references except for .state .datalib and .api, but instead uses those three to look up references on property access.
Return:
| * |
public validateOverlays() source
public warning(message: *, timeout: number): * source
Params:
| Name | Type | Attribute | Description |
| message | * | ||
| timeout | number |
|
Return:
| * |
