// Pastry.js
(function () {
/* global AdventureJS A */
/**
* @ajspath AdventureJS.Atom.Asset.Matter.Tangible.Thing.Edible.Pastry
* @augments AdventureJS.Assets.Edible
* @class AdventureJS.Assets.Pastry
* @ajsconstruct MyGame.createAsset({ "class":"Pastry", "name":"foo", [...] })
* @ajsconstructedby AdventureJS.Game#createAsset
* @ajsnavheading FoodDrinkClasses
* @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 Some kind of pastry.
* @classdesc
* <strong>Pastry</strong> is an edible item that can be destroyed on eating.
**/
class Pastry extends AdventureJS.Assets.Edible {
constructor(name, game_name, context_id = "", id = "") {
super(name, game_name, context_id, id);
this.class = "Pastry";
this.singularPluralPairs = [["pastry", "pastries"]];
}
}
AdventureJS.Assets.Pastry = Pastry;
})();