SITL Using MAVLink Messages

Is there any way to send the state of the simulated plane to the auto pilot software using mavlink messages?

I’m thinking of a functionality like the HIL_STATE_QUATERNION message which can be used in pixhawk HITL simulation.

Something like this would allow me to easily integrate my own physics simulations with Ardupilot without having to write custom SITL code on both ends.