Skip to content

Commit

Permalink
Add warnings for variables ownership (#7100)
Browse files Browse the repository at this point in the history
Do not show in changelog
  • Loading branch information
ClementPasteau authored Oct 22, 2024
1 parent 0788de3 commit 56662fb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Extensions/Multiplayer/JsExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,11 @@ module.exports = {
)
.addCodeOnlyParameter('currentScene', '')
.addParameter('variable', _('Variable'), '', false)
.setParameterLongDescription(
_(
'Only root variables can change ownership. Arrays and structures children are synchronized with their parent.'
)
)
.useStandardParameters(
'number',
gd.ParameterOptions.makeNewOptions().setDescription(_('Player number'))
Expand Down Expand Up @@ -916,6 +921,11 @@ module.exports = {
)
.addCodeOnlyParameter('currentScene', '')
.addParameter('variable', _('Variable'), '', false)
.setParameterLongDescription(
_(
'Only root variables can change ownership. Arrays and structures children are synchronized with their parent.'
)
)
.setHelpPath('/all-features/multiplayer')
.getCodeExtraInformation()
.setIncludeFile('Extensions/Multiplayer/peer.js')
Expand Down Expand Up @@ -947,6 +957,11 @@ module.exports = {
)
.addCodeOnlyParameter('currentScene', '')
.addParameter('variable', _('Variable'), '', false)
.setParameterLongDescription(
_(
'Only root variables can change ownership. Arrays and structures children are synchronized with their parent.'
)
)
.setHelpPath('/all-features/multiplayer')
.getCodeExtraInformation()
.setIncludeFile('Extensions/Multiplayer/peer.js')
Expand Down

0 comments on commit 56662fb

Please sign in to comment.