Newer
Older
BlackoutServerNode / item.js
class Item
{
	constructor(playerId, itemId)
	{
		this.playerId = playerId;
		this.itemId = itemId;
		this.key = playerId + "_" + itemId;
		this.details = {};
	}

	getJSON()
	{
		return {...this.details, player_id:this.playerId, item_id:this.itemId, key:this.key};
	}
}


module.exports = Item;