Skip to content

Commit

Permalink
IsPlayerController move to typePredicates
Browse files Browse the repository at this point in the history
  • Loading branch information
robincodex committed Jun 17, 2024
1 parent ba7b305 commit 85c8b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build/lua/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ export const overrides: Record<string, ApiOverride> = {
},
},

'CBaseEntity.IsPlayerController': {
return: 'this is CDOTAPlayerController',
},
'CBaseEntity.IsPlayerPawn': {
return: 'this is CBasePlayerPawn',
},
CreateItem: {
args: {
purchaser: 'CDOTA_BaseNPC_Hero | undefined',
Expand Down
2 changes: 2 additions & 0 deletions build/lua/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ const typePredicates: Record<string, string> = {
'CDOTA_PlayerResource.IsValidPlayerID': 'playerId is PlayerID',
'CDOTA_PlayerResource.IsValidTeamPlayer': 'playerId is PlayerID',
'CDOTA_PlayerResource.IsValidTeamPlayerID': 'playerId is PlayerID',
'CBaseEntity.IsPlayerController': 'this is CDOTAPlayerController',
'CBaseEntity.IsPlayerPawn': 'this is CBasePlayerPawn',
'CDOTABaseAbility.IsItem': 'this is CDOTA_Item',
'ProjectileManager.IsValidProjectile': 'value is ProjectileID',
};
Expand Down

0 comments on commit 85c8b1c

Please sign in to comment.