summaryrefslogtreecommitdiffstats
path: root/converter/cNBTData.h
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-10-30 07:48:10 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-10-30 07:48:10 +0100
commitaead2e43c2e631a0d872dcf1a708f40e3bcef0ea (patch)
tree843b9036be69bc96d112478e9186d9396e990ef4 /converter/cNBTData.h
parentMore updates to denotch map converter for testing. (diff)
downloadcuberite-aead2e43c2e631a0d872dcf1a708f40e3bcef0ea.tar
cuberite-aead2e43c2e631a0d872dcf1a708f40e3bcef0ea.tar.gz
cuberite-aead2e43c2e631a0d872dcf1a708f40e3bcef0ea.tar.bz2
cuberite-aead2e43c2e631a0d872dcf1a708f40e3bcef0ea.tar.lz
cuberite-aead2e43c2e631a0d872dcf1a708f40e3bcef0ea.tar.xz
cuberite-aead2e43c2e631a0d872dcf1a708f40e3bcef0ea.tar.zst
cuberite-aead2e43c2e631a0d872dcf1a708f40e3bcef0ea.zip
Diffstat (limited to '')
-rw-r--r--converter/cNBTData.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/converter/cNBTData.h b/converter/cNBTData.h
index 66ec31b03..77d0ff256 100644
--- a/converter/cNBTData.h
+++ b/converter/cNBTData.h
@@ -36,7 +36,7 @@ public:
void PutShort( std::string Name, short Value ) { m_Shorts[Name] = Value; }
void PutInteger( std::string Name, int Value ) { m_Integers[Name] = Value; }
void PutString( std::string Name, std::string Value ) { m_Strings[Name] = Value; }
- void PutByteArray( std::string Name, char Value ) { m_ByteArrays[Name] = Value; }
+ void PutByteArray( std::string Name, std::string Value ) { m_ByteArrays[Name] = Value; }
void PutCompound( std::string Name );
void PutList( std::string Name, ENUM_TAG Type );
@@ -44,7 +44,7 @@ public:
short GetShort( std::string Name ) { return m_Shorts[Name]; }
int GetInteger( std::string Name ) { return m_Integers[Name]; }
std::string GetString( std::string Name ) { return m_Strings[Name]; }
- char GetByteArray( std::string Name ) { return m_ByteArrays[Name]; }
+ std::string GetByteArray( std::string Name ) { return m_ByteArrays[Name]; }
cNBTCompound* GetCompound( std::string Name );
cNBTList* GetList( std::string Name ) { return m_Lists[Name]; }
@@ -68,7 +68,7 @@ private:
typedef std::map<std::string, short> ShortMap;
typedef std::map<std::string, int> IntegerMap;
typedef std::map<std::string, std::string> StringMap;
- typedef std::map<std::string, char> ByteArrayMap;
+ typedef std::map<std::string, std::string> ByteArrayMap;
typedef std::map<std::string, cNBTCompound*> CompoundMap;
typedef std::map<std::string, cNBTList*> ListMap;
ByteMap m_Bytes;
@@ -121,17 +121,17 @@ public:
bool OpenList( std::string a_Name );
bool CloseList();
- void PutByte( std::string Name, char Value ) { m_CurrentCompound->PutByte( Name, Value ); }
- void PutShort( std::string Name, short Value ) { m_CurrentCompound->PutShort( Name, Value ); }
- void PutInteger( std::string Name, int Value ) { m_CurrentCompound->PutInteger( Name, Value ); }
- void PutString( std::string Name, std::string Value ) { m_CurrentCompound->PutString(Name, Value); }
- void PutByteArray( std::string Name, char Value ) { m_CurrentCompound->PutByteArray( Name, Value ); }
- void PutCompound( std::string Name ) { m_CurrentCompound->PutCompound( Name ); }
- void PutList( std::string Name, ENUM_TAG Type ) { m_CurrentCompound->PutList( Name, Type ); }
+ void PutByte( std::string Name, char Value ) { m_CurrentCompound->PutByte( Name, Value ); }
+ void PutShort( std::string Name, short Value ) { m_CurrentCompound->PutShort( Name, Value ); }
+ void PutInteger( std::string Name, int Value ) { m_CurrentCompound->PutInteger( Name, Value ); }
+ void PutString( std::string Name, std::string Value ) { m_CurrentCompound->PutString(Name, Value); }
+ void PutByteArray( std::string Name, std::string Value ) { m_CurrentCompound->PutByteArray( Name, Value ); }
+ void PutCompound( std::string Name ) { m_CurrentCompound->PutCompound( Name ); }
+ void PutList( std::string Name, ENUM_TAG Type ) { m_CurrentCompound->PutList( Name, Type ); }
int GetInteger( std::string Name ) { return m_CurrentCompound->GetInteger(Name); }
std::string GetString( std::string Name ) { return m_CurrentCompound->GetString(Name); }
- char GetByteArray( std::string Name ) { return m_CurrentCompound->GetByteArray(Name); }
+ std::string GetByteArray( std::string Name ) { return m_CurrentCompound->GetByteArray(Name); }
cNBTCompound* GetCompound( std::string Name ) { return m_CurrentCompound->GetCompound(Name); }
cNBTList* GetList( std::string Name ) { return m_CurrentCompound->GetList(Name); }