Such that they can be used by e.g. GUI or maps scripts.
- WeightedList.
- FSM (refs. D1786).
- MultiKeyMap.
They don't depend on the simulation. See also e.g. vector.js.
Differential D3863
Move custom JS classes to globalscripts. Freagarach on Apr 16 2021, 9:10 PM. Authored by
Details
Such that they can be used by e.g. GUI or maps scripts.
They don't depend on the simulation. See also e.g. vector.js. Verify unmoddified behaviour. Agree on the idea.
Diff Detail
Event TimelineComment Actions Successful build - Chance fights ever on the side of the prudent. Debug: Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. 4>MSVCRTD.lib(initializers.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library [E:\Jenkins\workspace\vs2015-differential\build\workspaces\vs2017\pyrogenesis.vcxproj] 22>MSVCRTD.lib(initializers.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library [E:\Jenkins\workspace\vs2015-differential\build\workspaces\vs2017\test.vcxproj] Release: Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/5080/display/redirect Comment Actions One thing to check -> global scripts are run directly in the 'global namespace', not in a closure, so this might introduce some pollution/noise in the global namespace if local variables were defined by these scripts. Otherwise I rather agree, and would suggest moving these globalscripts to another mod later down the road. Comment Actions Do you mean vars? That is function-scoped so should just be within the defined functions, right? |