UNPKG

character-sheet

Version:

CharacterSheet library for assembling relationships between stats and modifiers.

95 lines (67 loc) 2.22 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Source: operations/Using.js</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Source: operations/Using.js</h1> <section> <article> <pre class="prettyprint source linenums"><code>import RegisterWith from './util/RegisterWith'; import Operation from '../Operation'; // import Calculate from './Calculate' /** * NOTE: CURRENTLY OBSOLETE! USING IS BAKED INTO DEFINITION * MAY WANT TO MOVE THIS BACK TO HERE */ // @RegisterWith(Operation) class Using extends Operation { static type = 'using'; _value = null; constructor({ value = null }) { super(...arguments); this._value = value; } static from(addOperation) { let o = new Using({ value: addOperation.value }); return o; } import(addOperation) { this._value = addOperation.value; } export() { return { type: Using.type, value: this._value }; } transform(value, resolver) { console.info('@@ Using - Not implemented'); return value; } } export default RegisterWith(Operation)(Using); </code></pre> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Add.html">Add</a></li><li><a href="Modifier.html">Modifier</a></li><li><a href="Operation.html">Operation</a></li><li><a href="Using.html">Using</a></li></ul><h3>Global</h3><ul><li><a href="global.html#RegisterWith">RegisterWith</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 25 2018 11:17:38 GMT-0800 (Pacific Standard Time) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>