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

Method addDrop

source/game/StarWorldGeneration.cpp:396–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void DungeonGeneratorWorld::addDrop(Vec2F const& position, ItemDescriptor const& item) {
397 m_worldServer->addEntity(ItemDrop::createRandomizedDrop(item, position));
398}
399
400void DungeonGeneratorWorld::spawnNpc(Vec2F const& position, Json const& parameters) {
401 auto kind = parameters.getString("kind");

Callers

nothing calls this directly

Calls 1

addEntityMethod · 0.45

Tested by

no test coverage detected