FlaminSarge / tf2attributes

TF2Attributes SourceMod plugin
49 stars 43 forks source link

converted old syntax to new syntax #1

Closed assyrianic closed 1 year ago

FlaminSarge commented 9 years ago

Has anybody made a methodmap for SDKCall handles? If so, that'd be much better to use, I think.

assyrianic commented 9 years ago

Sadly no methmap for sdkcall handles because there's not many handles needed for an sdkcall.

FlaminSarge commented 9 years ago

Ah yeah, SDKCall() is pretty much the only thing used with those, right.

I was thinking of making a CEconAttribute methodmap (since tf2att returns Handles from GetByName/etc. right now) when doing the SM17 syntax conversion. Thoughts?

Oh, and does CloseHandle need to be swapped out with 'delete'?

assyrianic commented 9 years ago

According to Bailopan, "delete" is basically a syntactic version of "CloseHandle"

so it's not entirely necessary to switch it out though it makes it alot easy and faster to simply type "delete Handle" or "Handle.Close()" rather than "CloseHandle(Handle)"

you can make methodmaps about damn near anything, especially if you believe it'll make it easier to code things.

nosoop commented 1 year ago

This has been superceded by f3945f28fdaca99472e7a597ae8cb0cff3be3e6e being merged in.