@drincs/nqtr
Version:
A complete system introducing the concepts of location, time and event, producing the framework of a not-quite-point-and-click adventure game.
2 lines • 3.29 kB
JavaScript
;var pixiVn=require('@drincs/pixi-vn');var o;(t=>(t.log=(e,...r)=>console.log(`[NQTR] ${e}`,...r),t.warn=(e,...r)=>console.warn(`[NQTR] ${e}`,...r),t.error=(e,...r)=>console.error(`[NQTR] ${e}`,...r),t.info=(e,...r)=>console.info(`[NQTR] ${e}`,...r)))(o||={});var c=new pixiVn.CachedMap({cacheSize:20}),y;(t=>{function n(e){if(Array.isArray(e)){e.forEach(r=>t.add(r));return}c.set(e.id,e);}t.add=n;function a(e){try{let r=c.get(e);if(!r){console.warn(`[NQTR] Activity ${e} not found, you should register it first`);return}return r}catch(r){o.error(`Error while getting Activity ${e}`,r);return}}t.get=a;function i(){return Array.from(c.values())}t.values=i;function f(e){return c.has(e)}t.has=f;})(y||={});var M=y;var s=new pixiVn.CachedMap({cacheSize:20});new pixiVn.CachedMap({cacheSize:20});var I;(t=>{function n(e){if(Array.isArray(e)){e.forEach(r=>t.add(r));return}s.set(e.id,e);}t.add=n;function a(e){try{let r=s.get(e);if(!r){console.warn(`[NQTR] Commitment ${e} not found, you should register it first`);return}return r}catch(r){o.error(`Error while getting Commitment ${e}`,r);return}}t.get=a;function i(){return Array.from(s.values())}t.values=i;function f(e){return s.has(e)}t.has=f;})(I||={});var $=I;var u=new pixiVn.CachedMap({cacheSize:20}),A;(t=>{function n(e){if(Array.isArray(e)){e.forEach(r=>n(r));return}u.set(e.id,e);}t.add=n;function a(e){try{let r=u.get(e);if(!r){console.warn(`[NQTR] Location ${e} not found, you should register it first`);return}return r}catch(r){o.error(`Error while getting Location ${e}`,r);return}}t.get=a;function i(){return Array.from(u.values())}t.values=i;function f(e){return u.has(e)}t.has=f;})(A||={});var g=A;var m=new pixiVn.CachedMap({cacheSize:20}),R;(t=>{function n(e){if(Array.isArray(e)){e.forEach(r=>n(r));return}m.set(e.id,e);}t.add=n;function a(e){try{let r=m.get(e);if(!r){console.warn(`[NQTR] Map ${e} not found, you should register it first`);return}return r}catch(r){o.error(`Error while getting Map ${e}`,r);return}}t.get=a;function i(){return Array.from(m.values())}t.values=i;function f(e){return m.has(e)}t.has=f;})(R||={});var l=R;var p=new pixiVn.CachedMap({cacheSize:5}),w;(t=>{function n(e){if(Array.isArray(e)){e.forEach(r=>t.add(r));return}p.set(e.id,e);}t.add=n;function a(e){try{let r=p.get(e);if(!r){console.warn(`[NQTR] Quest ${e} not found, you should register it first`);return}return r}catch(r){o.error(`Error while getting Quest ${e}`,r);return}}t.get=a;function i(){return Array.from(p.values())}t.values=i;function f(e){return p.has(e)}t.has=f;})(w||={});var T=w;var d=new pixiVn.CachedMap({cacheSize:20}),v;(t=>{function n(e){if(Array.isArray(e)){e.forEach(Q=>n(Q));return}d.set(e.id,e);let r=e.location;g.add(r);let h=r?.map;h&&l.add(h);}t.add=n;function a(e){try{let r=d.get(e);if(!r){console.warn(`[NQTR] Room ${e} not found, you should register it first`);return}return r}catch(r){o.error(`Error while getting Room ${e}`,r);return}}t.get=a;function i(){return Array.from(d.values())}t.values=i;function f(e){return d.has(e)}t.has=f;})(v||={});var S=v;exports.RegisteredActivities=M;exports.RegisteredCommitments=$;exports.RegisteredLocations=g;exports.RegisteredMaps=l;exports.RegisteredQuests=T;exports.RegisteredRooms=S;//# sourceMappingURL=index.cjs.map
//# sourceMappingURL=index.cjs.map