-
Notifications
You must be signed in to change notification settings - Fork 4
API Changes SC 5.18
GeckoN edited this page Jan 16, 2019
·
2 revisions
- Updated AngelScript to version 2.33.0. (changelog available HERE)
- Added new hooks: PickupObject::CanCollect, PickupObject::Materialize, PickupObject::Collected.
- Added integer casts for string_t.
- DamageInfo.pVictim is no longer const (fixes casting issues).
- Documentation: Added description for all existing hooks.
The compiler in AngelScript 2.33.0 detects name conflicts between properties and functions. As a result of this change the built-in array data type had to be modified as well. The length property accessors are no longer available to avoid conflict with the length() method. This may trigger compilation errors in existing scripts.
If your script uses the array's length property, you need to change it to the length() method instead.
For example, the following code
array<int> intArray;
uint len = intArray.length;
should be changed to
array<int> intArray;
uint len = intArray.length();
Additionally if your script uses the same name for a property and a function, you need to rename one or the other.