[DiscordArchive] is the editor integration only expected to work for hooks atm?
[DiscordArchive] is the editor integration only expected to work for hooks atm?
Archived author: nerdsville • Posted: 2024-06-16T19:55:06.661000+00:00
Original source
is the editor integration only expected to work for hooks atm?
Archived author: nerdsville • Posted: 2024-06-16T19:55:17.808000+00:00
Original source
I thought I was doing something wrong or something
Archived author: nerdsville • Posted: 2024-06-16T19:56:34.997000+00:00
Original source
There's also something weird I noticed that was driving me mad - typescript is complaining at compile time about not having the correct args for the events - how would it know? Is it some sort of compile time type checking?
```typescript
/**
* Example with arrow function
*
* This is just an Hello World
*/
export const OnPlayerLogin: player_event_on_login = (event, player) => {
player.SendChatMessageToPlayer(
ChatMsg.CHAT_MSG_WHISPER,
Language.LANG_UNIVERSAL,
"Hello World",
player
);
};
RegisterPlayerEvent(PlayerEvents.PLAYER_EVENT_ON_LOGIN, (...args) =>
OnPlayerLogin(...args)
);
```
Archived author: nerdsville • Posted: 2024-06-16T19:57:01.242000+00:00
Original source
or I guess transpile time x)
Archived author: nerdsville • Posted: 2024-06-16T19:57:21.226000+00:00
Original source
I also had the same issue with `eluna-ts` itself
Archived author: nerdsville • Posted: 2024-06-16T19:57:38.772000+00:00
Original source
using this skeleton https://github.com/azerothcore/eluna-ts/...d-skeleton
[Embed: eluna-ts/modules/eluna-ts-mod-skeleton at master · azerothcore/elun...]
Eluna-TS converts TS files to Lua scripts compatible with the Eluna system - azerothcore/eluna-ts
https://github.com/azerothcore/eluna-ts/...d-skeleton
Archived author: Roboto • Posted: 2024-06-16T19:57:50.477000+00:00
Original source
no, the classes have methods, for instance: <https://github.com/azerothcore/eluna-ts/blob/242d2a465ca1887ad5b1d4728db8b2e86ee507fd/deps/eluna-ts-definitions/src/global.d.ts#L2896>
Archived author: nerdsville • Posted: 2024-06-16T19:58:59.129000+00:00
Original source
for example `ChatMsg` wasn't working in-editor https://github.com/azerothcore/eluna-ts/...rc/ac.d.ts
[Embed: eluna-ts/deps/eluna-ts-definitions/src/ac.d.ts at 242d2a465ca1887ad...]
Eluna-TS converts TS files to Lua scripts compatible with the Eluna system - azerothcore/eluna-ts
https://github.com/azerothcore/eluna-ts/...rc/ac.d.ts
Archived author: Roboto • Posted: 2024-06-16T19:59:27.273000+00:00
Original source
I started working on an overhaul for the type definitions but never finished it
Archived author: nerdsville • Posted: 2024-06-16T19:59:35.777000+00:00
Original source
something is causing `eluna-ts-definitions` not to load properly I think