SiegeEngineers / aoe2cm2

Captains Mode for Age of Empires II
https://aoe2cm.net
51 stars 25 forks source link

Generalise draft format #81

Closed HSZemi closed 3 years ago

HSZemi commented 3 years ago

Use more general terms (Civilisation → DraftOption) and modify the format for Presets and PlayerActions so they are no longer exclusively designed for Civilisation drafting.

This should make it easier to introduce new Draft types in the future, like map drafts.

HSZemi commented 3 years ago

We would probably need to abstract DraftOptionGrid, PresetOptionCheckbox and DraftOptionPanel since each Draft type may have a different UI. You plan to do it in this PR or this is for later?

This pull request is supposed to only change things under the hood, but not modify anything yet that is visible to users of the site.