mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-11 21:59:19 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -25,7 +25,7 @@ void SynchedEntityData::define(int id, int value)
|
||||
m_isEmpty = false;
|
||||
}
|
||||
|
||||
void SynchedEntityData::define(int id, byte value)
|
||||
void SynchedEntityData::define(int id, BYTE value)
|
||||
{
|
||||
MemSect(17);
|
||||
checkId(id);
|
||||
@@ -94,7 +94,7 @@ void SynchedEntityData::checkId(int id)
|
||||
#endif
|
||||
}
|
||||
|
||||
byte SynchedEntityData::getByte(int id)
|
||||
BYTE SynchedEntityData::getByte(int id)
|
||||
{
|
||||
return itemsById[id]->getValue_byte();
|
||||
}
|
||||
@@ -144,7 +144,7 @@ void SynchedEntityData::set(int id, int value)
|
||||
}
|
||||
}
|
||||
|
||||
void SynchedEntityData::set(int id, byte value)
|
||||
void SynchedEntityData::set(int id, BYTE value)
|
||||
{
|
||||
shared_ptr<DataItem> dataItem = itemsById[id];
|
||||
|
||||
@@ -362,7 +362,7 @@ vector<shared_ptr<SynchedEntityData::DataItem> > *SynchedEntityData::unpack(Data
|
||||
{
|
||||
case TYPE_BYTE:
|
||||
{
|
||||
byte dataRead = input->readByte();
|
||||
BYTE dataRead = input->readByte();
|
||||
item = std::make_shared<DataItem>(itemType, itemId, dataRead);
|
||||
}
|
||||
break;
|
||||
@@ -492,7 +492,7 @@ int SynchedEntityData::getSizeInBytes()
|
||||
size += static_cast<int>(dataItem->getValue_wstring().length()) + 2; // Estimate, assuming all ascii chars
|
||||
break;
|
||||
case TYPE_ITEMINSTANCE:
|
||||
// short + byte + short
|
||||
// short + BYTE + short
|
||||
size += 2 + 1 + 2; // Estimate, assuming all ascii chars
|
||||
break;
|
||||
default:
|
||||
@@ -514,7 +514,7 @@ SynchedEntityData::DataItem::DataItem(int type, int id, int value) : type( type
|
||||
this->dirty = true;
|
||||
}
|
||||
|
||||
SynchedEntityData::DataItem::DataItem(int type, int id, byte value) : type( type ), id( id )
|
||||
SynchedEntityData::DataItem::DataItem(int type, int id, BYTE value) : type( type ), id( id )
|
||||
{
|
||||
this->value_byte = value;
|
||||
this->dirty = true;
|
||||
@@ -554,7 +554,7 @@ void SynchedEntityData::DataItem::setValue(int value)
|
||||
this->value_int = value;
|
||||
}
|
||||
|
||||
void SynchedEntityData::DataItem::setValue(byte value)
|
||||
void SynchedEntityData::DataItem::setValue(BYTE value)
|
||||
{
|
||||
this->value_byte = value;
|
||||
}
|
||||
@@ -594,7 +594,7 @@ float SynchedEntityData::DataItem::getValue_float()
|
||||
return value_float;
|
||||
}
|
||||
|
||||
byte SynchedEntityData::DataItem::getValue_byte()
|
||||
BYTE SynchedEntityData::DataItem::getValue_byte()
|
||||
{
|
||||
return value_byte;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user