-
Notifications
You must be signed in to change notification settings - Fork 7
Project standardization, fixes and CI #8
base: master
Are you sure you want to change the base?
Conversation
There is no "val" column on "tf2idb_qualities", assumed "value".
Nice. I'll pull this in as soon as I have a chance to; gotta doublecheck it plays nicely with some changes I made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're in the process of moving everything to SM17 transitional, I figured might as well change generic "Handle" tags to the actual objects they are (e.g. ArrayList).
scripting/include/tf2idb.inc
Outdated
* @return A fully executed DBStatement handle, or INVALID_HANDLE if the statement | ||
* execution failed. This handle must be closed by the calling plugin, even though it is owned by tf2idb. | ||
**/ | ||
native DBStatement TF2IDB_CustomQuery(const char[] query, Handle arguments, int maxStringSize); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ArrayList
scripting/include/tf2idb.inc
Outdated
native Handle TF2IDB_ListParticles(); | ||
|
||
//TF2IDB_FindItemCustom returns an Array Handle containing a list of integers for the first column of the query result | ||
native Handle TF2IDB_FindItemCustom(const char[] query); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ArrayList
scripting/include/tf2idb.inc
Outdated
native int TF2IDB_GetItemAttributes(int id, int aid[TF2IDB_MAX_ATTRIBUTES], float values[TF2IDB_MAX_ATTRIBUTES]); | ||
|
||
//TF2IDB_GetItemEquipRegions returns an Array Handle containing a list of the equip region names for the item | ||
native Handle TF2IDB_GetItemEquipRegions(int id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably use ArrayList instead of Handle
|
||
public void OnPluginStart() { | ||
if (!TF2II_IsItemSchemaPrecached()) return; | ||
Handle kv = TF2II_GetAttribKeyValues( 694 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle > KeyValues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can't downcast Handle
to KeyValues
, but I could add a view_as if necesary
scripting/include/tf2idb.inc
Outdated
native bool TF2IDB_DoRegionsConflict(const char[] region1, const char[] region2); | ||
|
||
//TF2IDB_ListParticles returns an Array Handle containing a list of the particle IDs | ||
native Handle TF2IDB_ListParticles(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ArrayList
Ported all the project to trasitional syntax, fixed some typos and added a travis-ci script.