if constexpr( requires { svdata.api_data.api_hougeki1; } ) { // ...}のようなコンパイル時実体化を用いればどんな戦闘APIでも一つの関数に記述できるのでは・。。・?