npc-emotional
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Description

Library to model NPC emotional reactions.

Provided classes

IEmotional

It an interface to model a NPC which could have relations to other NPCs.

Effect

It is a class to model the emotional effect provoked by a NPC action.

Situation

A class that models the situation of different NPCs in a scene.

apply

Given an Effect and a Situation it calculates the Reactions of the NPCs to the action.

Readme

Keywords

Package Sidebar

Install

npm i npc-emotional

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

239 kB

Total Files

25

Last publish

Collaborators

  • ivsaez