data.js redundant properties #6562
Unanswered
f0nar
asked this question in
Technical questions about the codebase
Replies: 1 comment 5 replies
-
Thank you for reporting this issue, it will be solved by this PR: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I created custom extension that includes functions with inline code and custom object (object uses functions). I dont want to share it here as it is super specific testing example for custom needs and I am sure that it will confuse you even more. I think extension structure is the key
Then I exported my game as HTML5 game export and found an interesting thing
All of my inline code which is more then 2.4k lines was wrapped and placed in
gdjs-evtsext__...smth...-func.js
file which is OK. But then I realized that it is duplicated indata.js
file inprojectData.eventsFunctionsExtensions.eventsFunctions
property. I checked GDevelop repo and found thateventsFunctionsExtensions
property is typed asEventsFunctionsExtensionData[]
whereso this duplicated code is not used in runtime in any way as I understand. So why is it there as well as a lot of other properties which are not specified in
EventsFunctionsExtensionData
type?In addition I see that there is no such duplications for my other extension that define functions with inline code (but not custom object). Is this due to usage in custom object?
Beta Was this translation helpful? Give feedback.
All reactions