skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
221 stars 75 forks source link

fix(skymp5-server): fix SP3 list functions API & upload an example #2183

Closed Pospelove closed 1 month ago

Pospelove commented 1 month ago

[!IMPORTANT] Fixes off-by-one errors in SP3ListStaticFunctions and SP3ListMethods in ScampServer.cpp and adds wip_sp3.js as an SP3 implementation example.

  • Bug Fixes:
    • Fix off-by-one error in SP3ListStaticFunctions() and SP3ListMethods() in ScampServer.cpp by using an index variable i instead of result.Length() to set array elements.
  • New Example:
    • Add wip_sp3.js as an incomplete test/example for SP3 implementation with TODOs for typed return values, class name normalization, and method naming conventions.

This description was created by Ellipsis for e9a446d884ea4fe27f6b14dedeb9564ee5933219. It will automatically update as commits are pushed.