Revise LibAC
This commit is contained in:
parent
60ced631ba
commit
c4e7b6fa54
35 changed files with 44 additions and 326 deletions
|
@ -2,14 +2,14 @@
|
|||
// All credit for the implementation of this file should go to the fNBT Authors, unless stated otherwise by comment!
|
||||
|
||||
|
||||
using LibZNI.Serialization.ZNIFile;
|
||||
using LibAC.Serialization.ACFile;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace LibZNI.Serialization
|
||||
namespace LibAC.Serialization
|
||||
{
|
||||
/// <summary> BinaryReader wrapper that takes care of reading primitives from an NBT stream,
|
||||
/// while taking care of endianness, string encoding, and skipping. </summary>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// DISCLAIMER: Taken from fNBT to be altered to fit the needs of ZNI NBT
|
||||
// All credit for the implementation of this file should go to the fNBT Authors, unless stated otherwise by comment!
|
||||
|
||||
using LibZNI.Serialization.ZNIFile;
|
||||
using LibAC.Serialization.ACFile;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace LibZNI.Serialization
|
||||
namespace LibAC.Serialization
|
||||
{
|
||||
/// <summary> BinaryWriter wrapper that writes NBT primitives to a stream,
|
||||
/// while taking care of endianness and string encoding, and counting bytes written. </summary>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
using LibZNI.Serialization.ZNIFile;
|
||||
using LibAC.Serialization.ACFile;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization
|
||||
namespace LibAC.Serialization
|
||||
{
|
||||
public abstract class Serializable
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization
|
||||
namespace LibAC.Serialization
|
||||
{
|
||||
public static class SerializingHelper
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using LibZNI.Serialization.ZNIFile;
|
||||
using LibAC.Serialization.ACFile;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
@ -7,7 +7,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization
|
||||
namespace LibAC.Serialization
|
||||
{
|
||||
/// <summary>
|
||||
/// This class contains helper functions for interacting with streams and files that are encoded using ZNIFile's structure
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class BoolTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class ByteArrayTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class ByteTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class DoubleTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class FloatTag : Tag
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Reflection.Metadata.Ecma335;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class Folder : Tag, ICollection<Tag>, ICollection
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class IntArrayTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class IntTag : Tag
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class ListTag : Tag, IList<Tag>, IList
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class LongArrayTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class LongTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class ShortTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class StringTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public abstract class Tag : ICloneable, IComparable<Tag>
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
// Aria: Changed to a type of byte which keeps it to only one byte when writing out in serializing
|
||||
public enum TagType : byte
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class UUIDTag : Tag
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibZNI.Serialization.ZNIFile
|
||||
namespace LibAC.Serialization.ACFile
|
||||
{
|
||||
public class uLongTag : Tag
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue