Posts: 423
Threads: 7
Joined: Jul 2010
Reputation:
0
Has anyone ever tried to make a List or Vector plugin using STL? It could make life a lot easier for some users as they wouldn't have to deal with raw arrays. I thought about this after we were learning about ArrayLists and data structures in my Java class.
Posts: 423
Threads: 7
Joined: Jul 2010
Reputation:
0
I don't need the API for vectors. I know what they are and what they do. I'm just wondering if anybody has ever tried building a plugin utilizing vectors to make life easier on scripters.
Posts: 78
Threads: 0
Joined: Mar 2009
Reputation:
0
I made Vectors plugin for myself,but I lose it when I reinstall windows.
Posts: 338
Threads: 44
Joined: Dec 2007
Reputation:
0
I'm using vectors in my script, and now I'll be trying to develop structure like this:
struct PLAYER{
<pdata>
};
vector<PLAYER> PlayersData;
But for now I don't see a real point linking vector into pawn, as you can't use it as real vector anyway, you could rather make a simple dynamic array, with reduced but much more efficient methods.
Posts: 423
Threads: 7
Joined: Jul 2010
Reputation:
0
Well for the advanced users, I'm pretty sure they know how to make their script efficient. New users most likely always will make arrays MUCH to big and a vector or arraylist type plugin will reduce that since they don't start out so big.
Posts: 973
Threads: 11
Joined: Mar 2008
Reputation:
0
People dont really realize we already really have a dynamic array plugin. Search for incognito's gvar plugin, it has functions for storing floats,strings, and ints - all of which have an index parameter so you can create arrays.
I agree though it would be pretty awesome to see an STL plugin with the algorithms,maps,lists, and all the other cool things it has to offer.