MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / modifyServerTile

Method modifyServerTile

source/game/StarWorldServer.cpp:1768–1779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1766}
1767
1768ServerTile* WorldServer::modifyServerTile(Vec2I const& position, bool withSignal) {
1769 if (withSignal)
1770 signalRegion(RectI::withSize(position, {1, 1}));
1771
1772 auto tile = m_tileArray->modifyTile(position);
1773 if (tile) {
1774 dirtyCollision(RectI::withSize(position, {1, 1}));
1775 m_liquidEngine->visitLocation(position);
1776 queueTileUpdates(position);
1777 }
1778 return tile;
1779}
1780
1781EntityId WorldServer::loadUniqueEntity(String const& uniqueId) {
1782 return m_worldStorage->loadUniqueEntity(uniqueId);

Callers 12

setFlowMethod · 0.80
liquidCollisionMethod · 0.80
moveBlockMethod · 0.80
setForegroundMaterialMethod · 0.80
setBackgroundMaterialMethod · 0.80
placePlantMethod · 0.80
setLiquidMethod · 0.80
setForegroundModMethod · 0.80
setBackgroundModMethod · 0.80
setDungeonIdAtMethod · 0.80
generateMicroDungeonsMethod · 0.80
reapplyBiomeMethod · 0.80

Calls 2

modifyTileMethod · 0.45
visitLocationMethod · 0.45

Tested by

no test coverage detected