Silentor / GD_DB

Game design info database for Unity + plain c# backend
0 stars 0 forks source link

Implement GDType.Is() queries #30

Closed Silentor closed 1 month ago

Silentor commented 2 months ago

GdType sometype; if ( sometype.Is( ERoot.Mobs ) ) ... //For Categories

if ( sometype.Is( EMobs.Orcs, value: 5 ) ) ... //For values

Check for child category should automatically ensure parents category correctness: sometype.Is( EMobs.Orcs ) checks for ERoot.Mobs also