コード例 #1
0
        public AudicaTargetFailState TargetMissAim()
        {
            AudicaTargetFailState targetMiss = new AudicaTargetFailState();

            SongCues.Cue cue = AudicaTargetStateManager.targetTracker.mLastEitherHandTarget.target.GetCue();

            targetMiss.targetIndex = cue.index;
            targetMiss.type        = this.cueToTargetType(cue);
            targetMiss.hand        = this.cueToHand(cue);
            targetMiss.reason      = "aim";
            return(targetMiss);
        }
コード例 #2
0
        public AudicaTargetFailState TargetMissEarlyLate(float tick)
        {
            AudicaTargetFailState targetMiss = new AudicaTargetFailState();

            SongCues.Cue cue = AudicaTargetStateManager.targetTracker.mLastEitherHandTarget.target.GetCue();

            targetMiss.targetIndex = cue.index;
            targetMiss.type        = this.cueToTargetType(cue);
            targetMiss.hand        = this.cueToHand(cue);
            targetMiss.reason      = tick < cue.tick ? "early" : "late";

            return(targetMiss);
        }
コード例 #3
0
 public static void Postfix(float tick)
 {
     MelonLoader.MelonModLogger.Log("Target Miss (timing)!");
     AudicaTargetFailState targetMiss = AudicaHTTPStatus.AudicaTargetState.TargetMissEarlyLate(tick);
 }
コード例 #4
0
 public static void Postfix()
 {
     MelonLoader.MelonModLogger.Log("Target Miss (aim)!");
     AudicaTargetFailState targetMiss = AudicaHTTPStatus.AudicaTargetState.TargetMissAim();
     // TODO: feed output into JSON parser then to HTTP server as websocket event
 }