Switch-Toolbox/File_Format_Library/FileFormats/Collision/KclMonoscript.cs
KillzXGaming a8e6d104f2 A few improvements.
Panes can now be selected and moved around.
Panes can be resized from corners or edges.
Improved hit detection for panes.
Mouse left click now selects and moves panes. Use middle mouse or hold shift + left mouse to pan/move camera.
More progress on timeline, but currently not functional so currently disabled atm.
Multiple layout animations can be selected and played at once. Goes to the highest amount of frames.
Start to impliment a parts manager. Will allow editing external layout and animation data, and saving back properly.
2019-10-05 13:25:28 -04:00

43 lines
902 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace FirstPlugin
{
/// <summary>
/// Collision from the KCL library turned into a mono script
/// </summary>
public class KclMonoscript
{
public class HeaderV2
{
}
public class HeaderV1
{
}
public HeaderV2 Header;
public void ReadKCL(string fileName)
{
using (var reader = new StreamReader(File.OpenRead(fileName)))
{
while (!reader.EndOfStream)
{
string line = reader.ReadLine();
if (line.Contains("KCollisionV2Header "))
{
Header = new HeaderV2();
}
}
}
}
}
}