Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating War3Api.Common to 1.33 #19

Open
SavanticIO opened this issue Mar 26, 2023 · 2 comments
Open

Updating War3Api.Common to 1.33 #19

SavanticIO opened this issue Mar 26, 2023 · 2 comments

Comments

@SavanticIO
Copy link

Hey.

This might not be the correct place to be asking this but I'm not sure how else to go about it.

I want to be able to make use of the BlzGetAbilityId() function that was added in 1.33 but when I update to the latest version on NuGet it is still assembly version 1.32 and doesn't contain BlzGetAbilityId()

Would you be able to provide any insight into this?

Apologies in advance if I'm just missing something obvious.

Cheers,

Sav.

@Drake53
Copy link
Owner

Drake53 commented Mar 26, 2023

Might be some issue with nuget, you can check if the package exists in your local cache at C:\Users\<user>\.nuget\packages\war3api.common\1.33.0

As a workaround you could declare the method in one of your own classes using:

/// @CSharpLua.Template = "BlzGetAbilityId({0})"
public static extern int BlzGetAbilityId(ability whichAbility);

@SavanticIO
Copy link
Author

Yeah the 1.33.0 packge exists in the nuget cache

I'll impliment that work around for now. Cheers

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

No branches or pull requests

2 participants