Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to various components, added a few new ones. #2330

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ AnimationComponent::AnimationComponent() : Component()
mNetworked = true;

mFriendlyName = "Animation(Component)";
mComponentType = "Render";
mComponentType = "Animation";

mDescription = getDescriptionText("Allows a rendered mesh to be animated");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class AnimationComponent : public Component

TSShape* getShape();

void targetShapeChanged(RenderComponentInterface* instanceInterface);
virtual void targetShapeChanged(RenderComponentInterface* instanceInterface);

virtual void processTick();
virtual void advanceTime(F32 dt);
Expand Down
8 changes: 4 additions & 4 deletions Engine/source/T3D/components/audio/SoundComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ void SoundComponent::onComponentAdd()
{
Parent::onComponentAdd();

Con::printf("We were added to an entity! SoundComponent reporting in for owner entity %i", mOwner->getId());
//Con::printf("We were added to an entity! SoundComponent reporting in for owner entity %i", mOwner->getId());
}

//This is called when the component has been removed from an entity
void SoundComponent::onComponentRemove()
{
Con::printf("We were removed from our entity! SoundComponent signing off for owner entity %i", mOwner->getId());
//Con::printf("We were removed from our entity! SoundComponent signing off for owner entity %i", mOwner->getId());
Parent::onComponentRemove();
}

Expand All @@ -113,14 +113,14 @@ void SoundComponent::componentAddedToOwner(Component *comp)
playAudio(slotNum, mSoundFile[slotNum]);
}
}
Con::printf("Our owner entity has a new component being added! SoundComponent welcomes component %i of type %s", comp->getId(), comp->getClassRep()->getNameSpace());
//Con::printf("Our owner entity has a new component being added! SoundComponent welcomes component %i of type %s", comp->getId(), comp->getClassRep()->getNameSpace());
}

//This is called any time a component is removed from an entity. Every component current owned by the entity is informed of the event.
//This allows cleanup and dependency management.
void SoundComponent::componentRemovedFromOwner(Component *comp)
{
Con::printf("Our owner entity has a removed a component! SoundComponent waves farewell to component %i of type %s", comp->getId(), comp->getClassRep()->getNameSpace());
//Con::printf("Our owner entity has a removed a component! SoundComponent waves farewell to component %i of type %s", comp->getId(), comp->getClassRep()->getNameSpace());
}

//Regular init persist fields function to set up static fields.
Expand Down
Loading