Question about "inline-script"

For discussion and help with the Construct 3 Plugin SDK

Post » Mon Aug 14, 2017 3:00 am

@Ashley

What happen if two plugins have the same file name of "inline-script"? Will this file be overwrote?
Goodbye
B
114
S
31
G
295
Posts: 4,549
Reputation: 164,608

Post » Mon Aug 14, 2017 11:26 am

They will be duplicated. There is no deduplication in the dependency system at all, the same would happen with external scripts. Do you need it, and if so what for?
Scirra Founder
B
414
S
245
G
92
Posts: 25,205
Reputation: 200,351

Post » Mon Aug 14, 2017 2:54 pm

@Ashley

Duplicating is better, imo.
De-duplication could reduce file size, but it might have trouble if the content of inline-script are not the same.
Goodbye
B
114
S
31
G
295
Posts: 4,549
Reputation: 164,608

Post » Fri Sep 08, 2017 1:32 pm

Ashley wrote:They will be duplicated. There is no deduplication in the dependency system at all, the same would happen with external scripts. Do you need it, and if so what for?


i want to separate the logic and the visuals of my games, by using external javascript file genrated by typescript.
the scripts can communicate with the game using "c2_callFunction".
i dont know how to make my scripts available to construct 3 preview mode.
i want the benefits of writing oop code in typescript
B
45
S
16
G
8
Posts: 62
Reputation: 6,723


Return to Plugin SDK

Who is online

Users browsing this forum: No registered users and 0 guests