mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 07:07:50 +02:00
See description
Reverted ToastVariant back to an enum internally. Still exposed to player as just possible strings. Changed all 1-line documentation comments to actually be 1-line. Moved some because they were not providing documentation for the thing they were trying to.
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
* Generic Event Emitter class following a subscribe/publish paradigm.
|
||||
*/
|
||||
function uuidv4(): string {
|
||||
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
||||
const r = (Math.random() * 16) | 0,
|
||||
@@ -9,6 +6,7 @@ function uuidv4(): string {
|
||||
});
|
||||
}
|
||||
|
||||
/** Generic Event Emitter class following a subscribe/publish paradigm. */
|
||||
export class EventEmitter<T extends any[]> {
|
||||
subscribers: { [key: string]: (...args: [...T]) => void | undefined } = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user