Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Project standardization, fixes and CI #8

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

fakuivan
Copy link
Contributor

Ported all the project to trasitional syntax, fixed some typos and added a travis-ci script.

@fakuivan fakuivan mentioned this pull request Jan 27, 2017
@FlaminSarge
Copy link
Owner

Nice. I'll pull this in as soon as I have a chance to; gotta doublecheck it plays nicely with some changes I made.

Copy link
Owner

@FlaminSarge FlaminSarge left a 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).

* @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);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArrayList

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);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArrayList

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);
Copy link
Owner

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 );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handle > KeyValues

Copy link
Contributor Author

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

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();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArrayList

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants