Open keatonuw opened 1 year ago
Nice catch! My preference is actually to change it so that
AdEnvSegment
would be a member of AdEnv
, and then the seg
argument would be of type AdEnvSegment
i.e. SetTime(AdEnvSegment seg, float time)
I would think that would also fix the documentation issue automatically, though I will check that to make sure. I'm going to make that change and close this PR soon (we're saving any breaking changes for a little while).
Thanks again for the catch!
As a user of DaisySP, it was unclear what integers were valid inputs and outputs from AdEnv::SetTime and AdEnv::GetCurrentSegment.
I've added @see AdEnvSegment comments to AdEnv documentation. This should help future developers quickly find the enumeration through the documentation.
FYI: This is my first PR on GitHub & first contribution to DaisySP! I've read the contribution guides, but let me know if I'm missing anything. Thanks!