mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-01-22 11:21:45 -05:00
c81573594f
Git had a horrible seizure and removed our repo but Alex-TIMEHACK helped us get it back.
33 lines
1 KiB
C#
33 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static ShiftOS.Engine.SaveSystem;
|
|
using System.IO;
|
|
|
|
namespace ShiftOS.Main.Terminal.Commands
|
|
{
|
|
public class codepoints : TerminalCommand
|
|
{
|
|
public override string Name { get; } = "codepoints";
|
|
public override string Summary { get; } = "Shows your current amount of codepoints.";
|
|
public override string Usage { get; } = "codepoints";
|
|
public override bool Unlocked { get; set; } = true;
|
|
|
|
public override void Run(params string[] parameters)
|
|
{
|
|
if (parameters.Length > 0)
|
|
{
|
|
WriteLine($"sbash: unexpected token: {parameters.First()}");
|
|
}
|
|
|
|
using (var fs = File.OpenRead(dataDir + "\\userCodePoints.whoa"))
|
|
{
|
|
int codepoints = Whoa.Whoa.DeserialiseObject<int>(fs, Whoa.SerialisationOptions.None);
|
|
WriteLine($"You currently have {codepoints} codepoints.");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|