jlnunez89 / fibula-mmo

An open source server written in C# for the other-leg-bone-name game (which must not be named).
MIT License
28 stars 7 forks source link

Massive PR: Enable most use actions, refactor scripting framework and MoveUse adapter. #30

Closed jlnunez89 closed 4 years ago

jlnunez89 commented 4 years ago

Script framework/parsing

Introduced a ScriptApi to handle common scripting events/functions.

Move/Use file parsing and Adapter

Implemented a loader for the moveuse.dat file from Cip, which handlers parsing. There is also an adapter for the content read on the file to the ScriptApi interface introduced, which ultimately lands on calling the game instance with the events from the scripts.

New Handlers

ItemUseHandler: Items are now usable with the introduction of ItemUseHandler (might need a rename tho). Too far away items and path finding are out of scope, tracked by #31 LookAtHandler: Now possible to look at stuff.