Event Timeline
Is there a way we can play a I will repair sound instead of I will build ? Or is that in UnitAI ?
EDIT1: JSDOC would be nice.
EDIT2: does the get Schema work ?
@Stan
units have different sound for order_repair and order_build at least in templates
issue is that i unit_actions.js is only command repair and so always is used and played order_repair even if target is just foundation and not damaged building
and unitAi does not differentiate these commands too
refs IRClogs yesterday and today, and lobby logs today.
The file contains the same code as currently committed, but uses the class syntax.
The Schema uses the getter syntax, i.e. performs the function if the property is referenced, i.e. .Schema as usual, not .Schema(). It works, has been uncharted territory for me too.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
As reported on the lobby yesterday, another feature of the class keyword is that it throws an error if one calls a constructor without new:
TypeError: class constructors must be invoked with |new|
Class keyword discussion with Krinkle on:
http://irclogs.wildfiregames.com/2019-08/2019-08-31-QuakeNet-%230ad-dev.log
Class keyword comments by smiley on lobby on September 1st and 6th
Class keyword discussion with Krinkle, nani, Chakakhan, bb, fpre:
http://irclogs.wildfiregames.com/2019-09/2019-09-05-QuakeNet-%230ad-dev.log
Class keyword disussion with wraitii on:
http://irclogs.wildfiregames.com/2019-09/2019-09-07-QuakeNet-%230ad-dev.log
First use of class keyword in rP22854 / D2240.
GUI to be rewritten from procedural code to OOP code in #5387, hence the necessary decision.
To make it consistent the AI, simulation and rmgen would be considered as well.
Brief class keyword discussion with Vladislav:
http://irclogs.wildfiregames.com/2019-09/2019-09-16-QuakeNet-%230ad-dev.log
Class keyword was used in by me in rP22923, rP22985, rP22854, by wraitii in rP2301 https://code.wildfiregames.com/D2337?id=10007