Closed Deewarz closed 3 months ago
I can help with JavaScript / TypeScript and simple C++.
But the main thing requires advanced skills in C++, V8 and Node.js.
I have already made the basis for type definitions but it requires:
Track all related issues in https://github.com/orgs/MafiaHub/projects/5
Closing this as NodeJS is not supported anymore.
Summary
Currently, scripting DX is quite unpleasant:
setTimeout
,setInterval
...)import * as sdk from "@mafiamp/server"
) (see: [RFC] Scripting API)sdk.on('tick', () => {}
)Inspiration
A very good implementation is done here:
This implementation follows [RFC] Scripting API and covers most of the points above. It is perhaps a little too advanced for our current needs but can serve as a good basis for our implementation.
Todo (by priority order)
sdk.on('tick', () => {}
)