core
MMO.core · 41 symbols · generated 5 Oct 2026
RFC_TIME
Date.js:14Date time as defined in RFC3339 1: year (Y) 2: month (m) 3: day (d) 4: hour (H) 5: minute (i) 6: seconds (s) 7: .millisecond (u) 8: timezone (P)
- Namespace
MMO.core
REG_TIME
Date.js:15- Namespace
MMO.core
RFC_DATE
Date.js:17- Namespace
MMO.core
REG_DATE
Date.js:18- Namespace
MMO.core
REG_DATETIME
Date.js:20- Namespace
MMO.core
REG_UNIXTIME
Date.js:21- Namespace
MMO.core
EVENTS_SYMBOL
EventEmitter.js:8Thanks to https://github.com/Hypercubed/mini-signals
- Namespace
MMO.core
SYMBOL_STYLES
core.js:3- Namespace
MMO.core
SYMBOL_DOM_REPLACE
core.js:4- Namespace
MMO.core
UNWATCH_EVENT
core.js:5- Namespace
MMO.core
ID
core.js:18MMO.core.SYMBOL_MODEL = Symbol('MMO.core.Model'); MMO.core.MODEL_EVENT_REMOVE = Symbol('Model.event.remove'); MMO.core.MODEL_EVENT_ALL = Symbol('Model.event.all'); MMO.core.MODEL_EVENT_DONE = Symbol('Model.event.done'); MMO.core.MODEL_EVENT_CHANGE = Symbol('Model.event.change'); MMO.core.MODEL_SLEEP = 1; MMO.core.MODEL_ANIM = 2; MMO.core.MODEL_UNSET = 4; MMO.core.MODEL_MAX_EMIT = 10000;
- Namespace
MMO.core
REG_BYTE
core.js:20- Namespace
MMO.core
htmlentitiesEncode
core.js:40Equivalent of php function htmlentities()
- Namespace
MMO.core
| text | ||
| returns | * |
htmlentitiesDecode
core.js:48Decode html entities encoded with php function htmlentities() or js function MMO.core.htmlentitiesEncode()
- Namespace
MMO.core
| text |
preventPropagation
core.js:59Alias to stop event propagation
- Namespace
MMO.core
| e | Event | |
| allow_link = false | ||
| returns | Function |
isEmpty
core.js:77Check if object is empty
- Namespace
MMO.core
| obj | Object | |
| returns | Boolean |
isEqual
core.js:93Check if 2 values are equal (deep)
- Namespace
MMO.core
| a | ||
| b | ||
| returns | Boolean |
isSimilar
core.js:165Test whether b is "contained in" a (a one-way, loose comparison).
- Namespace
MMO.core
| a | * | the larger value |
| b | * | the value to look for inside a |
| returns | boolean |
compare
core.js:207Compare the two parameters
- Namespace
MMO.core
| a | ||
| b | ||
| returns | null | int | null if comparison cannot be done, 0 if similar, -1 if inferior, 1 if superior. |
compareDescending
core.js:223- Namespace
MMO.core- See
MMO.core.comparewith the operands swapped, for a descending sort.
| a | * | |
| b | * | |
| returns | ?number |
isUnique
core.js:232Check if an array has only unique items
- Namespace
MMO.core
| array | Array | |
| returns | Boolean |
isSimpleObject
core.js:250Test whether a value is a plain data container rather than a class instance.
- Namespace
MMO.core
| obj | * | |
| allowArray = true | boolean | count arrays as simple objects |
| returns | boolean |
isSameArray
core.js:263Test if two arrays hold the same values, ignoring their order.
- Namespace
MMO.core
| a | Array | |
| b | Array | |
| returns | boolean |
watch
core.js:281Watch for a change on a proerty's value Redefine object's property with a getter and a setter.
- Namespace
MMO.core
| obj | Object | the object |
| key | string | |
| handler | Function | function(value, key, old_value) called with this = obj |
unwatch
core.js:344Unwatch an object's property ONLY set the value to MMO.core.UNWATCH_EVENT.
- Namespace
MMO.core
| obj | Object | the object |
| key | string | |
| returns | Boolean | true if the property was watched |
link
core.js:365Set a link to another object's property as a property To remove the link just delete the property
- Namespace
MMO.core
| obj | Object | the object |
| key | string | |
| obj2 | Object | the object to link to |
| key2 | string | the object's property to link to |
getter
core.js:381Create a function that reads an object's property when called.
- Namespace
MMO.core
| obj | Object | |
| key | string | |
| returns | Function | function(): * |
linkFn
core.js:393Set a function as an object's property To remove the function just delete the property
- Namespace
MMO.core
| obj | Object | the object |
| key | string | |
| fn | Function | function(...args): value |
| ...args | ...? | a list of values|function to use to call the function. |
UID
core.js:419Get a stable numeric id for an object, assigning one on first use.
- Namespace
MMO.core
| obj | Object | |
| returns | number |
merge
core.js:443Merge primitive objects or values. The merge doesn't modify the original objects.
- Namespace
MMO.core
| a | * | |
| b | * | |
| appendList = false | bool | if true concat arrays. else set their values |
| returns | * | the new merged object |
ksort
core.js:474Reorder an object's keys IN PLACE (a javascript object keeps its insertion order).
- Namespace
MMO.core
| map | Object | modified in place |
| cmpFn | ?Function | function(keyA, keyB): number, defaults to Array.sort's order |
| returns | Object | the same object |
clone
core.js:496Deep clone a simple Object
- Namespace
MMO.core
| obj | object | |
| returns | object |
MAP_WATCHES
Map.js:4- Namespace
MMO.core
MAP_CHANGED
Map.js:8function (<Symbol> MMO.core.MAP_CHANGED, <MMO.core.Map> map). Emitted when the map is changed in any way.
- Namespace
MMO.core
MAP_CONNECT
Map.js:11function (<Symbol> MMO.core.MAP_CONNECT, <MMO.core.Map> parent, <string|int> key, <MMO.core.Map> value). Emitted when a map is connected as a child of another Map.
- Namespace
MMO.core
MAP_DISCONNECT
Map.js:14function (<Symbol> MMO.core.MAP_DISCONNECT, <MMO.core.Map> parent, <string|int> key, <MMO.core.Map> value). Emitted when a map is disconnected as a child of another Map.
- Namespace
MMO.core
MAP_VALUE_CHANGED
Map.js:17function (<char> MMO.core.MAP_VALUE_CHANGED, <MMO.core.Map> map, <string|int> key). Emitted at the key when the value is changed.
- Namespace
MMO.core
MAP_VALUE_CREATED
Map.js:20function (<char> MMO.core.MAP_VALUE_CREATED, <MMO.core.Map> map, <string|int> key). Emitted at the key when the value is created.
- Namespace
MMO.core
MAP_VALUE_DELETED
Map.js:23function (<char> MMO.core.MAP_VALUE_DELETED, <MMO.core.Map> map, <string|int> key). Emitted at the key when the value is deleted.
- Namespace
MMO.core
MAP_INDEX_CHANGED
Map.js:26function (<char> MMO.core.MAP_INDEX_CHANGED, <MMO.core.Map> map, <string|int> key, <int> oldIndex). Emitted at the key when the index of a key is changed ({a:1, b:2} => {b:2, a:1})
- Namespace
MMO.core
MAP_KEY_CHANGED
Map.js:29function (<char> MMO.core.MAP_KEY_CHANGED, <MMO.core.Map> map, <string> key, <string> oldKey). Emitted at the new key when the key is changed ({a:1, b:2} => {newA:1, b:2})
- Namespace
MMO.core