コード例 #1
0
	void IntantiateSoulAltar(Vector3 posDest, Vector3 posInit, Logic::CMap *map)
	{
		Logic::CEntity *ent = Logic::CEntityFactory::getSingletonPtr()->createEntityByType("AltarFeedback", posInit, map);

		Logic::CAltarFeedbackController *comp = (Logic::CAltarFeedbackController *) ent->getComponent("CAltarFeedbackController");

		comp->Config(posDest);
	}
コード例 #2
0
	void openChestAnimation(Logic::CEntity &entity)
	{
		Logic::CAnimatedGraphics* cmp = (Logic::CAnimatedGraphics*) entity.getComponent("CAnimatedGraphics");
		cmp->setAnimation("Open", "default", false, true, 0.0f, 2.0f);
	}