mirror of
https://github.com/fishguy6564/Nitro-AR-Code-Manager.git
synced 2025-06-18 13:15:39 -04:00
73 lines
1.2 KiB
C#
73 lines
1.2 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
|
|
public class CodeList
|
|
{
|
|
public class Code
|
|
{
|
|
private uint lineAmount;
|
|
private String cheat;
|
|
private String description;
|
|
|
|
public Code(String cheat, String description)
|
|
{
|
|
this.cheat = cheat;
|
|
this.description = description;
|
|
}
|
|
|
|
public String getCheat()
|
|
{
|
|
return this.cheat;
|
|
}
|
|
|
|
public String getDescription()
|
|
{
|
|
return this.description;
|
|
}
|
|
|
|
public uint getLineAmount()
|
|
{
|
|
return this.lineAmount;
|
|
}
|
|
|
|
}
|
|
|
|
private List<CodeList> list;
|
|
private int amount;
|
|
public CodeList(FileStream codeList)
|
|
{
|
|
|
|
}
|
|
|
|
public CodeList()
|
|
{
|
|
this.amount = 0;
|
|
this.list = new List<CodeList>();
|
|
}
|
|
|
|
public void clear()
|
|
{
|
|
this.list = null;
|
|
this.amount = 0;
|
|
}
|
|
|
|
public void addCode(String cheat, String description)
|
|
{
|
|
Code entry = new Code(cheat, description);
|
|
this.list.Add(entry);
|
|
this.amount++;
|
|
}
|
|
|
|
public void removeCode(int index)
|
|
{
|
|
Code deletedCode = this.list[index];
|
|
this.list.Remove(deletedCode);
|
|
}
|
|
|
|
public void interpretFile(FileStream codeList)
|
|
{
|
|
return; //Todo
|
|
}
|
|
}
|