rlane / oort3

A space fleet programming game
https://oort.rs
GNU General Public License v3.0
297 stars 23 forks source link

Expose ship class base stats #62

Closed twof closed 1 year ago

twof commented 1 year ago

Useful for various physics calculations

Accessible in game via

class().default_stats()
twof commented 1 year ago

@rlane Alright I think we're good to go. Not sure if it's exactly what you meant, but I implemented From<ClassStats> on ShipData. I'm still pretty new to Rust, but that felt like it was a good way to do it. Let me know if you want any other changes!

rlane commented 1 year ago

Thanks!