Skip to content
Browse files
Add ParserTest (still no charts loading)
  • Loading branch information
Keripo committed Jan 2, 2015
1 parent 5347d83 commit a8f985852efadc33e4462fc290ab81afcee8fe8f
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 21 deletions.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

@@ -0,0 +1,66 @@
* Copyright (C) 2015, Philip Peng (Keripo). All rights reserved.
* The software in this package is published under the terms of the BSD-style license
* a copy of which has been included with this distribution in the LICENSE file.
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
using System.Reflection;

namespace Beats2.Parser

public class ParserTest : MonoBehaviour
private const string TAG = "ParserTest";

public string simfilePath;
public Text contentText;

public Text logHistoryText;
public int logHistorySize;

private ParserBase _parser;

void Awake()

void Start()
_parser = ParserBase.GetParser(FileLoader.GetDataPath(simfilePath));

void Update()
logHistoryText.text = Logger.GetLogHistoryString();

public void LoadMetadata()
Logger.Debug(TAG, "LoadMetadata");
contentText.text = Logger.DumpFields(_parser.simfile.metadata);

public void LoadLyrics()
Logger.Debug(TAG, "LoadLyrics");
contentText.text = Logger.DumpFields(_parser.simfile.lyrics);

public void LoadCharts()
Logger.Debug(TAG, "LoadCharts");
contentText.text = Logger.DumpFields(_parser.simfile.charts);

0 comments on commit a8f9858

Please sign in to comment.