// Void.js
(function () {
/* global adventurejs A */
/**
* @ajspath adventurejs.Atom.Asset.Void
* @augments adventurejs.Asset
* @class adventurejs.Void
* @ajsconstruct MyGame.createAsset({ "class":"Void", "name":"foo", [...] })
* @ajsconstructedby adventurejs.Game#createAsset
* @ajsinternal
* @ajsnavheading LibraryAssets
* @param {String} game_name The name of the top level game object.
* @param {String} name A name for the object, to be serialized and used as ID.
* @summary Special class for catching invalid calls to Game.$("asset").
* @classdesc
* <p>
* <strong>Void</strong> is a special class of abstract
* global {@link adventurejs.Asset|Assets}.
* Authors should not have to construct or modify this Asset.
* </p>
**/
class Void extends adventurejs.Asset {
constructor(name, game_name) {
super(name, game_name);
this.class = "Void";
this.is.singleton = true;
this.is.global = true;
this.is.known = true;
this.is.seen = true;
}
}
adventurejs.Void = Void;
})();