Skip to content

Commit

Permalink
Adjust logging for music component
Browse files Browse the repository at this point in the history
  • Loading branch information
Extremelyd1 committed Jul 27, 2024
1 parent 5b0b2fb commit 8f47e1e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions HKMP/Game/Client/Entity/Component/MusicComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,12 @@ ApplyMusicCue self

orig(self);

Logger.Debug(" Not controlled");

var musicCue = self.musicCue.Value;
if (musicCue == null) {
Logger.Debug(" Music Cue null");
return;
}

Logger.Debug($" Music Cue not null, name: {musicCue.name}");

foreach (var musicCueData in MusicCueDataList) {
Logger.Debug($" Loop, music cue: {musicCueData.Name}, {musicCueData.Type}");

if (musicCueData.MusicCue == musicCue || musicCueData.Name == musicCue.name) {
Logger.Debug($" Sending data, index: {musicCueData.Index}");

Expand Down Expand Up @@ -158,19 +151,12 @@ TransitionToAudioSnapshot self

orig(self);

Logger.Debug(" Not controlled");

var snapshot = self.snapshot.Value;
if (snapshot == null) {
Logger.Debug(" Snapshot null");
return;
}

Logger.Debug($" Snapshot not null, name: {snapshot.name}");

foreach (var snapshotData in SnapshotDataList) {
Logger.Debug($" Loop, snapshot: {snapshotData.Name}, {snapshotData.Type}");

if (snapshotData.Snapshot == snapshot || snapshotData.Name == snapshot.name) {
Logger.Debug($" Sending data, index: {snapshotData.Index}");

Expand Down Expand Up @@ -219,14 +205,11 @@ public override void Update(EntityNetworkData data) {

void ApplyIndex(byte index) {
foreach (var musicCueData in MusicCueDataList) {
Logger.Debug($" Loop, index: {musicCueData.Index}");

if (musicCueData.Index != index) {
continue;
}

if (musicCueData.MusicCue == null) {
Logger.Debug(" Could not find music cue in data");
continue;
}

Expand All @@ -238,14 +221,11 @@ void ApplyIndex(byte index) {
}

foreach (var snapshotData in SnapshotDataList) {
Logger.Debug($" Loop, index: {snapshotData.Index}");

if (snapshotData.Index != index) {
continue;
}

if (snapshotData.Snapshot == null) {
Logger.Debug(" Could not find snapshot in data");
continue;
}

Expand Down

0 comments on commit 8f47e1e

Please sign in to comment.