Initial Commit
This commit is contained in:
21
assets/pets/index.js
Normal file
21
assets/pets/index.js
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
const cat = require('./cat');
|
||||
|
||||
const PET_ASSETS = {
|
||||
cat
|
||||
};
|
||||
|
||||
function getPetAsset(type) {
|
||||
return PET_ASSETS[type] || PET_ASSETS.cat;
|
||||
}
|
||||
|
||||
function getAvailablePetTypes() {
|
||||
return Object.keys(PET_ASSETS);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
PET_ASSETS,
|
||||
getPetAsset,
|
||||
getAvailablePetTypes
|
||||
};
|
||||
Reference in New Issue
Block a user