I m not sure why you make "order" struct is a public struct.
If ( you plan everybody can use "order" struct )
You should name order struct a unique name like "LastOrder_OrderData"
You should make a private struct
I have a proplem with your library that is "re-declare: order" error
It is a small stuff, hope you change. Or all mapmakers use this library must remember: dont use variable name "order"