mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-03 01:14:58 +00:00
31 lines
895 B
C#
31 lines
895 B
C#
using Newtonsoft.Json.Linq;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.IO;
|
|
|
|
using PckStudio.Properties;
|
|
using PckStudio.Classes.Extentions;
|
|
using OMI.Formats.Behaviour;
|
|
using OMI.Workers.Behaviour;
|
|
using OMI.Formats.Pck;
|
|
using System;
|
|
|
|
namespace PckStudio.Forms.Utilities
|
|
{
|
|
public static class BehaviourResources
|
|
{
|
|
public static readonly JObject entityData = JObject.Parse(Resources.entityBehaviourData);
|
|
private static Image[] _entityImages;
|
|
|
|
public static Image[] entityImages => _entityImages ??= Resources.entities_sheet.CreateImageList(32).ToArray();
|
|
|
|
internal static byte[] BehaviourFileInitializer()
|
|
{
|
|
using var stream = new MemoryStream();
|
|
var writer = new BehavioursWriter(new BehaviourFile());
|
|
writer.WriteToStream(stream);
|
|
return stream.ToArray();
|
|
}
|
|
}
|
|
}
|