themeldingwars / PIN

Pirate Intelligence Network
https://themeldingwars.com/
52 stars 10 forks source link

Load all Aptitude commands, add Targets wrapper #44

Closed SzymonKaminski closed 4 months ago

SzymonKaminski commented 4 months ago

Added loading of all remaining SDB and server commands to Factory and Loader classes, skipping ones with zero rows in SDB or BaseCommandDef, for server commands, to make it clear what other similar commands to the ones already in PIN are yet to be implemented. Properly enabling any command requires moving related files outside of Todo/ directories and uncommenting two lines in Factory class.

Added ApitudeTargets class decorating List<IAptitudeTarget>, limiting its api and printing current target stack elements whenever it's about to be changed; its closest to vector<T> used in client.

Added logic to some commands, of Target type and few others, mostly based on names of their params and implementations of existing commands, and fixed few typos shown in console logs along the way.