Advertisement

Script array code for managing objects

Started by September 23, 2015 02:29 PM
1 comment, last by Solokiller 9 years, 2 months ago

Would it be possible to refactor the script array code that handles management of object instances so that it can be easily used by other classes?

I'm trying to write a linked list class, and i have to copy over a lot of code from the array class to do the same kind of management.

The array variables that keep track of the object type, its size and subtype id are all basically reused, so that could all go into a class.

It could be done, but with the add-ons I'm trying to make each of them as independent from each other as possible as not everyone want to use all of the add-ons.

By the way, have you seen Sami Vuorela's template container library for AngelScript?

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

Indeed i have, at the time it was released i was unsure as to whether our project could use them, seeing as we still support VS2010, which does not fully implement C++11.

For now, we will use our own list class, but once we have upgraded to VS2015 i will replace it with Sami's version. In any case, it's good exercise to get a fully functioning list working.

This topic is closed to new replies.

Advertisement