Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] is the editor integration only expected to work for hooks atm?

[DiscordArchive] is the editor integration only expected to work for hooks atm?

[DiscordArchive] is the editor integration only expected to work for hooks atm?

Pages (5): 1 2 3 4 5 Next
rektbyfaith
Administrator
0
06-16-2024, 07:55 PM
#1
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?
rektbyfaith
06-16-2024, 07:55 PM #1

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?

rektbyfaith
Administrator
0
06-16-2024, 07:55 PM
#2
Archived author: nerdsville • Posted: 2024-06-16T19:55:17.808000+00:00
Original source

I thought I was doing something wrong or something
rektbyfaith
06-16-2024, 07:55 PM #2

Archived author: nerdsville • Posted: 2024-06-16T19:55:17.808000+00:00
Original source

I thought I was doing something wrong or something

rektbyfaith
Administrator
0
06-16-2024, 07:56 PM
#3
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)
);
```
rektbyfaith
06-16-2024, 07:56 PM #3

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)
);
```

rektbyfaith
Administrator
0
06-16-2024, 07:57 PM
#4
Archived author: nerdsville • Posted: 2024-06-16T19:57:01.242000+00:00
Original source

or I guess transpile time x)
rektbyfaith
06-16-2024, 07:57 PM #4

Archived author: nerdsville • Posted: 2024-06-16T19:57:01.242000+00:00
Original source

or I guess transpile time x)

rektbyfaith
Administrator
0
06-16-2024, 07:57 PM
#5
Archived author: nerdsville • Posted: 2024-06-16T19:57:21.226000+00:00
Original source

I also had the same issue with `eluna-ts` itself
rektbyfaith
06-16-2024, 07:57 PM #5

Archived author: nerdsville • Posted: 2024-06-16T19:57:21.226000+00:00
Original source

I also had the same issue with `eluna-ts` itself

rektbyfaith
Administrator
0
06-16-2024, 07:57 PM
#6
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
rektbyfaith
06-16-2024, 07:57 PM #6

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

rektbyfaith
Administrator
0
06-16-2024, 07:57 PM
#7
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>
rektbyfaith
06-16-2024, 07:57 PM #7

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>

rektbyfaith
Administrator
0
06-16-2024, 07:58 PM
#8
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
rektbyfaith
06-16-2024, 07:58 PM #8

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

rektbyfaith
Administrator
0
06-16-2024, 07:59 PM
#9
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
rektbyfaith
06-16-2024, 07:59 PM #9

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

rektbyfaith
Administrator
0
06-16-2024, 07:59 PM
#10
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
rektbyfaith
06-16-2024, 07:59 PM #10

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

Pages (5): 1 2 3 4 5 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)