Silentor / GD_DB

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

Implement strongly-typed GdType constructors #27

Closed Silentor closed 1 month ago

Silentor commented 2 months ago

like GDType.CreateCurrency().WithGoldType(); GDType.CreateCurrency().WithTokens().WithWeapon(); //How to chain methods? If use intermediate types, then I need make sure client finished chain with .Type() method. Should be need of Analyzer.

GDType.Create( ERoot ca1, ECurrency cat2, ETokens cat3 ); GDType.Create( ERoot ca1, EMobs cat2 ); //Its bad because of GDType.Create( ERoot.Mobs, ECurrency.Gold )

one method for every type value like GDType.CreateCurrenciesTokensGold(); GDType.CreateMobsHumans( Int32 id ); //For Int subcategory

Silentor commented 2 months ago

Created third type implementation without values, still WIP

Silentor commented 2 months ago

Consider replace with Set() form #31