Commit Graph
12 Commits
Author SHA1 Message Date
Kam 19b01e2099 Compress Script Hooks and Context System 2026-01-22 14:27:48 -05:00
bigguy345 50e9f1b3e5 HUGE IScriptHandlerPacket merge.
All ScriptHandlers that send packets now directly define their data through the ScriptHandler class itself, NOT through their own GuiScript extended class.
2026-01-22 20:05:07 +02:00
bigguy345 cda43fe67a Defaulted IScriptHandler methods to clean up duplicate code across implementations 2026-01-18 03:05:02 +02:00
bigguy345 cc0959dcfe Added run(EnumScriptType, Event) and
run(String, Event) methods to IScriptUnit interface, with JaninoScript
delegating to callByHookType(). This provides a cleaner abstraction that
supports both ScriptContainer and JaninoScript without type checking.

Affected files:
- IScriptUnit: Added run() methods to interface
- JaninoScript: Implemented run() delegation methods
- DataScript, PlayerDataScript, GlobalNPCDataScript, ForgeDataScript
- EffectScript, LinkedItemScript, RecipeScript
- ScriptCustomItem, TileScripted: Refactored to use polymorphic calls
2026-01-14 00:16:58 +02:00
bigguy345 cd60a03544 Moved all INpcScriptHandler implementations to IScriptHandler as its redundant 2026-01-13 23:45:14 +02:00
bigguy345 c3e032dcf2 Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation 2026-01-13 18:25:28 +02:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
Kam 180d257024 Proper Reformating 2025-03-13 17:14:45 -04:00
Luis C.M 3b0879b0db Made a new interface for CNPC+ script handlers and changed callScript functions to make them more 3rd party API-friendly 2023-07-13 13:56:32 -05:00
Luis C.M dd7714350d ScriptWorld:
-Added functions from patch
2023-06-02 17:17:00 -05:00
Luis C.M a0adf0d7bd Fixed item toss event not being cancellable. Setting a script container's engine doesn't happen on every script call now, reducing lag. 2023-05-29 23:57:45 -05:00
Luis C.M 29935a1c6d Implemented local NPC event scripts. 2023-03-16 04:27:19 -05:00