feat: TU19 (Dec 2014) Features & Content (#155)
* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
This commit is contained in:
@@ -16,8 +16,9 @@ void TileEntity::staticCtor()
|
||||
TileEntity::setId(FurnaceTileEntity::create, eTYPE_FURNACETILEENTITY, L"Furnace");
|
||||
TileEntity::setId(ChestTileEntity::create, eTYPE_CHESTTILEENTITY, L"Chest");
|
||||
TileEntity::setId(EnderChestTileEntity::create, eTYPE_ENDERCHESTTILEENTITY, L"EnderChest");
|
||||
TileEntity::setId(RecordPlayerTile::Entity::create, eTYPE_RECORDPLAYERTILE, L"RecordPlayer");
|
||||
TileEntity::setId(JukeboxTile::Entity::create, eTYPE_RECORDPLAYERTILE, L"RecordPlayer");
|
||||
TileEntity::setId(DispenserTileEntity::create, eTYPE_DISPENSERTILEENTITY, L"Trap");
|
||||
TileEntity::setId(DropperTileEntity::create, eTYPE_DROPPERTILEENTITY, L"Dropper");
|
||||
TileEntity::setId(SignTileEntity::create, eTYPE_SIGNTILEENTITY, L"Sign");
|
||||
TileEntity::setId(MobSpawnerTileEntity::create, eTYPE_MOBSPAWNERTILEENTITY, L"MobSpawner");
|
||||
TileEntity::setId(MusicTileEntity::create, eTYPE_MUSICTILEENTITY, L"Music");
|
||||
@@ -25,7 +26,12 @@ void TileEntity::staticCtor()
|
||||
TileEntity::setId(BrewingStandTileEntity::create, eTYPE_BREWINGSTANDTILEENTITY, L"Cauldron");
|
||||
TileEntity::setId(EnchantmentTableEntity::create, eTYPE_ENCHANTMENTTABLEENTITY, L"EnchantTable");
|
||||
TileEntity::setId(TheEndPortalTileEntity::create, eTYPE_THEENDPORTALTILEENTITY, L"Airportal");
|
||||
TileEntity::setId(CommandBlockEntity::create, eTYPE_COMMANDBLOCKTILEENTITY, L"Control");
|
||||
TileEntity::setId(BeaconTileEntity::create, eTYPE_BEACONTILEENTITY, L"Beacon");
|
||||
TileEntity::setId(SkullTileEntity::create,eTYPE_SKULLTILEENTITY, L"Skull");
|
||||
TileEntity::setId(DaylightDetectorTileEntity::create, eTYPE_DAYLIGHTDETECTORTILEENTITY, L"DLDetector");
|
||||
TileEntity::setId(HopperTileEntity::create, eTYPE_HOPPERTILEENTITY, L"Hopper");
|
||||
TileEntity::setId(ComparatorTileEntity::create, eTYPE_COMPARATORTILEENTITY, L"Comparator");
|
||||
}
|
||||
|
||||
void TileEntity::setId(tileEntityCreateFn createFn, eINSTANCEOF clas, wstring id)
|
||||
@@ -123,10 +129,10 @@ int TileEntity::getData()
|
||||
return data;
|
||||
}
|
||||
|
||||
void TileEntity::setData(int data)
|
||||
void TileEntity::setData(int data, int updateFlags)
|
||||
{
|
||||
this->data = data;
|
||||
level->setData(x, y, z, data);
|
||||
level->setData(x, y, z, data, updateFlags);
|
||||
}
|
||||
|
||||
void TileEntity::setChanged()
|
||||
@@ -135,6 +141,7 @@ void TileEntity::setChanged()
|
||||
{
|
||||
data = level->getData(x, y, z);
|
||||
level->tileEntityChanged(x, y, z, shared_from_this());
|
||||
if (getTile() != NULL) level->updateNeighbourForOutputSignal(x, y, z, getTile()->id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,6 +153,11 @@ double TileEntity::distanceToSqr(double xPlayer, double yPlayer, double zPlayer)
|
||||
return xd * xd + yd * yd + zd * zd;
|
||||
}
|
||||
|
||||
double TileEntity::getViewDistance()
|
||||
{
|
||||
return 64 * 64;
|
||||
}
|
||||
|
||||
Tile *TileEntity::getTile()
|
||||
{
|
||||
if( tile == NULL ) tile = Tile::tiles[level->getTile(x, y, z)];
|
||||
@@ -171,14 +183,16 @@ void TileEntity::clearRemoved()
|
||||
{
|
||||
remove = false;
|
||||
}
|
||||
void TileEntity::triggerEvent(int b0, int b1)
|
||||
|
||||
bool TileEntity::triggerEvent(int b0, int b1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void TileEntity::clearCache()
|
||||
{
|
||||
tile = NULL;
|
||||
data = -1;
|
||||
tile = NULL;
|
||||
data = -1;
|
||||
}
|
||||
|
||||
void TileEntity::setRenderRemoveStage( unsigned char stage )
|
||||
|
||||
Reference in New Issue
Block a user