Skip to content

Commit

Permalink
Add CDOTA_Buff.IsNull and fix CreateItem (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
robincodex authored Jun 18, 2024
1 parent 8c4d59c commit 5f4fb96
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
12 changes: 12 additions & 0 deletions build/vscripts/api/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ export const classExtensions: Record<string, ExtensionClass> = {
},
],
},
CDOTA_Buff: {
members: [
{
kind: 'function',
name: 'IsNull',
available: 'both',
description: 'Has underlying C++ entity object been deleted?',
returns: ['bool'],
args: [],
},
],
},
};

export const functionExtensions: Record<string, ExtensionFunction> = {
Expand Down
2 changes: 1 addition & 1 deletion build/vscripts/api/data/moddota-dump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export const moddotaDump: Record<string, ExtensionFunction> = {
args: {
'0': ['itemName'],
'1': ['owner', ['CDOTAPlayerController', 'nil']],
'2': ['purchaser', ['CDOTAPlayerController', 'nil']],
'2': ['purchaser', ['CDOTA_BaseNPC_Hero', 'nil']],
},
},
'_G.CreateItemOnPositionForLaunch': {
Expand Down
16 changes: 12 additions & 4 deletions files/engine-enums.json
Original file line number Diff line number Diff line change
Expand Up @@ -2639,6 +2639,10 @@
"name": "ACT_HL2MP_GESTURE_RELOAD_MELEE",
"shortName": "HL2MP_GESTURE_RELOAD_MELEE"
},
{
"name": "ACT_HL2MP_IDLE_CROUCH_MELEE",
"shortName": "HL2MP_IDLE_CROUCH_MELEE"
},
{
"name": "ACT_HL2MP_IDLE_MELEE",
"shortName": "HL2MP_IDLE_MELEE"
Expand Down Expand Up @@ -2675,10 +2679,6 @@
"name": "ACT_IDLE_AIM_AGITATED",
"shortName": "IDLE_AIM_AGITATED"
},
{
"name": "ACT_IDLE_AIM_AUTOGUN",
"shortName": "IDLE_AIM_AUTOGUN"
},
{
"name": "ACT_IDLE_AIM_DUAL",
"shortName": "IDLE_AIM_DUAL"
Expand Down Expand Up @@ -6530,6 +6530,10 @@
"name": "DOTA_ABILITY_BEHAVIOR_UNRESTRICTED",
"shortName": "UNRESTRICTED"
},
{
"name": "DOTA_ABILITY_BEHAVIOR_UNSWAPPABLE",
"shortName": "UNSWAPPABLE"
},
{
"name": "DOTA_ABILITY_BEHAVIOR_VECTOR_TARGETING",
"shortName": "VECTOR_TARGETING"
Expand Down Expand Up @@ -6717,6 +6721,10 @@
{
"name": "UnitTargetFlags",
"members": [
{
"name": "DOTA_UNIT_TARGET_FLAG_CAN_BE_SEEN",
"shortName": "CAN_BE_SEEN"
},
{
"name": "DOTA_UNIT_TARGET_FLAG_CHECK_DISABLE_HELP",
"shortName": "CHECK_DISABLE_HELP"
Expand Down
12 changes: 11 additions & 1 deletion files/vscripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -12791,6 +12791,16 @@
],
"args": []
},
{
"kind": "function",
"name": "IsNull",
"available": "both",
"description": "Has underlying C++ entity object been deleted?",
"returns": [
"bool"
],
"args": []
},
{
"kind": "function",
"name": "IsStunDebuff",
Expand Down Expand Up @@ -35712,7 +35722,7 @@
{
"name": "purchaser",
"types": [
"CDOTAPlayerController",
"CDOTA_BaseNPC_Hero",
"nil"
]
}
Expand Down

0 comments on commit 5f4fb96

Please sign in to comment.