| 1 | #include "MapObj/CapTargetParts.h" |
| 2 | |
| 3 | #include "Library/LiveActor/ActorActionFunction.h" |
| 4 | #include "Library/LiveActor/ActorAnimFunction.h" |
| 5 | #include "Library/LiveActor/ActorModelFunction.h" |
| 6 | |
| 7 | CapTargetParts::CapTargetParts(al::LiveActor* actor, const al::ActorInitInfo& initInfo) |
| 8 | : al::PartsModel("帽子の的パーツ" ) { |
| 9 | initPartsFixFileNoRegister(actor, initInfo, "CapTarget" , "Parts" , nullptr); |
| 10 | al::startMclAnimAndSetFrameAndStop(this, "Color" , 2.0f); |
| 11 | } |
| 12 | |
| 13 | void CapTargetParts::startHack() { |
| 14 | al::startAction(actor: this, actionName: "Normal" ); |
| 15 | } |
| 16 | |
| 17 | void CapTargetParts::startNormal() { |
| 18 | al::startAction(actor: this, actionName: "Normal" ); |
| 19 | al::showModelIfHide(actor: this); |
| 20 | } |
| 21 | |
| 22 | void CapTargetParts::startSwoon() { |
| 23 | al::startAction(actor: this, actionName: "Swoon" ); |
| 24 | al::hideModel(actor: this); |
| 25 | } |
| 26 | |