Skip to content

Experimental feature: Alias calls #56

Description

@Perryvw

Related pull request: #55

You can define a type alias as follows:

type C_DOTA_BaseNPC = CDOTA_BaseNPC;

Then an explicit cast would cause the transpiler to use the alias instead of the original class. For example

unit.GetMana()                      ==>   CDOTA_BaseNPC.GetMana(unit)
(<C_DOTA_BaseNpc>unit).GetMana()    ==>   C_DOTA_BaseNPC.GetMana(unit)

From now on this experimental feature will be merged into the main branch to test. Please report any issues with this mechanic here.

This feature will remain open until this experimental feature is reverted or added permanently.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions