From 76a4f15a5640b43e32fcbdcf7180850d7aea86c8 Mon Sep 17 00:00:00 2001 From: ForeverZer0 Date: Tue, 24 Aug 2021 22:59:04 -0400 Subject: [PATCH] Documentation --- SharpNBT/FormatOptions.cs | 28 +++++++++++++++++++++++++++- SharpNBT/SharpNBT.csproj | 2 +- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/SharpNBT/FormatOptions.cs b/SharpNBT/FormatOptions.cs index c1435e6..99ebfb2 100644 --- a/SharpNBT/FormatOptions.cs +++ b/SharpNBT/FormatOptions.cs @@ -14,21 +14,47 @@ namespace SharpNBT [PublicAPI][Flags] public enum FormatOptions { + /// + /// None/invalid option flags. + /// None = 0, + /// + /// Numeric values will be read/written in big-endian format. + /// + /// This is the default for the Java edition of Minecraft. BigEndian = 0x01, + /// + /// Numeric values will be read/written in little-endian format. + /// + /// This is the default for Bedrock editions of Minecraft. LittleEndian = 0x02, + /// + /// Integer types will be read/written as variable-length integers. + /// VarIntegers = 0x04, + /// + /// Variable-length integers will be written using ZigZag encoding. + /// + /// ZigZagEncoding = 0x08, - + /// + /// Flags for using a format compatible with Java editions of Minecraft. + /// Java = BigEndian, + /// + /// Flags for using a format compatible with Bedrock editions of Minecraft when writing to a file. + /// BedrockFile = LittleEndian, + /// + /// Flags for using a format compatible with Bedrock editions of Minecraft when transporting across a network.. + /// BedrockNetwork = LittleEndian | VarIntegers | ZigZagEncoding } } \ No newline at end of file diff --git a/SharpNBT/SharpNBT.csproj b/SharpNBT/SharpNBT.csproj index 6947ee8..bc72746 100644 --- a/SharpNBT/SharpNBT.csproj +++ b/SharpNBT/SharpNBT.csproj @@ -10,7 +10,7 @@ https://github.com/ForeverZer0/SharpNBT git icon.png - nbt;named binary tag;minecraft;serialization + nbt;named binary tag;minecraft;serialization;java;bedrock;pocket edition;varint;varlong