dcl-npc-toolkit-ai-version
Version:
A collection of tools for creating Non-Player-Characters (NPCs). These are capable of having conversations with the player, and play different animations. AI usage is added atop of it
1 lines • 1.05 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.httpie={})}(this,(function(t){function e(t,e){e.statusMessage=t.statusText,e.statusCode=t.status,e.data=t.body}function n(t,n,o){var a,i,s=(o=o||{}).body;return o.method=t,o.headers=o.headers||{},s instanceof FormData||s&&"object"==typeof s&&(o.headers["content-type"]="application/json",o.body=JSON.stringify(s)),o.withCredentials&&(o.credentials="include"),o.timeout&&(i=new AbortController,o.signal=i.signal,a=setTimeout(i.abort,o.timeout)),new Promise((t,d)=>{fetch(n,o).then((n,i)=>{clearTimeout(a),e(n,n),i=n.status>=400?d:t,(s=n.headers.get("content-type"))&&~s.indexOf("application/json")?n.text().then(t=>{try{n.data=JSON.parse(t,o.reviver),i(n)}catch(t){t.headers=n.headers,e(n,t),d(t)}}):i(n)}).catch(t=>{t.timeout=i&&i.signal.aborted,d(t)})})}var o=n.bind(n,"GET"),a=n.bind(n,"POST"),i=n.bind(n,"PATCH"),s=n.bind(n,"DELETE"),d=n.bind(n,"PUT");t.del=s,t.get=o,t.patch=i,t.post=a,t.put=d,t.send=n}));