@pixi/runner
Advanced tools
Comparing version 7.0.0-beta.3 to 7.0.0-beta.4
/*! | ||
* @pixi/runner - v7.0.0-beta.3 | ||
* Compiled Thu, 13 Oct 2022 15:35:43 UTC | ||
* @pixi/runner - v7.0.0-beta.4 | ||
* Compiled Thu, 20 Oct 2022 19:45:44 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/runner is licensed under the MIT License. |
"use strict";/*! | ||
* @pixi/runner - v7.0.0-beta.3 | ||
* Compiled Thu, 13 Oct 2022 15:35:43 UTC | ||
* @pixi/runner - v7.0.0-beta.4 | ||
* Compiled Thu, 20 Oct 2022 19:45:44 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/runner is licensed under the MIT License. |
@@ -5,16 +5,16 @@ /** | ||
* | ||
* Like a signal: | ||
* | ||
* like a signal.. | ||
* ``` | ||
* ```js | ||
* import { Runner } from '@pixi/runner'; | ||
* | ||
* const myObject = { | ||
* loaded: new Runner('loaded') | ||
* } | ||
* loaded: new Runner('loaded'), | ||
* }; | ||
* | ||
* const listener = { | ||
* loaded: function(){ | ||
* // thin | ||
* loaded: function() { | ||
* // Do something when loaded | ||
* } | ||
* } | ||
* }; | ||
* | ||
@@ -26,15 +26,16 @@ * myObject.loaded.add(listener); | ||
* | ||
* Or for handling calling the same function on many items | ||
* ``` | ||
* Or for handling calling the same function on many items: | ||
* | ||
* ```js | ||
* import { Runner } from '@pixi/runner'; | ||
* | ||
* const myGame = { | ||
* update: new Runner('update') | ||
* } | ||
* update: new Runner('update'), | ||
* }; | ||
* | ||
* const gameObject = { | ||
* update: function(time){ | ||
* // update my gamey state | ||
* } | ||
* } | ||
* update: function(time) { | ||
* // Update my gamey state | ||
* }, | ||
* }; | ||
* | ||
@@ -68,5 +69,5 @@ * myGame.update.add(gameObject); | ||
* | ||
* Eg A listener passed to this Runner will require a 'complete' function. | ||
* E.g. A listener passed to this Runner will require a 'complete' function. | ||
* | ||
* ``` | ||
* ```js | ||
* import { Runner } from '@pixi/runner'; | ||
@@ -73,0 +74,0 @@ * |
{ | ||
"name": "@pixi/runner", | ||
"version": "7.0.0-beta.3", | ||
"version": "7.0.0-beta.4", | ||
"main": "dist/cjs/runner.js", | ||
@@ -53,3 +53,3 @@ "module": "dist/esm/runner.mjs", | ||
], | ||
"gitHead": "8055ae1c16d4c0f8dabda86cafd8e68c356450e8" | ||
"gitHead": "a4581e4a49d23afc98fcf726765c9d54e51c3c39" | ||
} |
@@ -20,6 +20,6 @@ # @pixi/runner | ||
//listenerObject needs to have a 'onComplete' function | ||
// listenerObject needs to have a 'onComplete' function | ||
onComplete.add(listenerObject); | ||
//emit and all listeners will have their 'onComplete' functions called | ||
// emit() and all listeners will have their 'onComplete' functions called | ||
onComplete.emit(data); | ||
@@ -40,3 +40,3 @@ ``` | ||
// update game elements.. | ||
// Update game elements... | ||
updateRunner.emit(); | ||
@@ -43,0 +43,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43299
279