angered-ghandi / OpenAOE

An open source reimplementation of Age of Empires (1997)
Other
66 stars 6 forks source link

Add Vector2, Vector3 and Vector4 types #24

Closed Xinayder closed 8 years ago

Xinayder commented 8 years ago

I decided to use Vector as fields instead of turning the whole component into a Vector because this way we can still impl specs::Component on the component, otherwise rustc will throw E0117 Closes #18

Xinayder commented 8 years ago

Would you like me to turn TransformComponent.position into a Vector2<i32> type?

angered-ghandi commented 8 years ago

Let's keep it as f32 for now. I think moving to integer types would need to be a separate task as there are many considerations in addition to just changing the type. Thanks!