Inheritance: ScriptRuntime.Component
Esempio n. 1
0
 private void reset()
 {
     m_animationComponent         = null;
     m_meshRenderComponent        = null;
     m_spriteRenderComponent      = null;
     m_skinnedMeshRenderComponent = null;
     m_skeletonComponent          = null;
     m_particleRenderComponent    = null;
     m_projectorRenderComponent   = null;
     m_scriptComponent            = null;
     m_cameraComponent            = null;
     m_SoundSource   = null;
     m_EchoFilter    = null;
     m_LowPassFilter = null;
     m_ReverbFilter  = null;
 }
 extern private static void ICall_AnimationComponent_RemoveAttachedActor(AnimationComponent self, Actor actor);
 extern private static void ICall_AnimationComponent_RemoveAffectedNodes_2(AnimationComponent self, String animName, String nodeName, bool recursive);
 extern private static void ICall_AnimationComponent_SetAnimationWrapMode(AnimationComponent self, String name, int wrapMode);
 extern private static void ICall_AnimationComponent_BlendingAnimation(AnimationComponent self, String name, float weight, float time);
 extern private static void ICall_AnimationComponent_CrossFading(AnimationComponent self, String name, int type, float time);
Esempio n. 7
0
        // - private function
        private void DeAssignComponent(Component component)
        {
            System.Type comType = component.GetType();
            if (AnimationComponent.thisType == comType)
            {
                m_animationComponent = null;
            }
            else if (MeshRenderComponent.thisType == comType)
            {
                m_meshRenderComponent = null;
            }
            else if (SkinnedMeshRenderComponent.thisType == comType)
            {
                m_skinnedMeshRenderComponent = null;
            }
            else if (ProjectorRenderComponent.thisType == comType)
            {
                m_projectorRenderComponent = null;
            }
            else if (SkeletonComponent.thisType == comType)
            {
                m_skeletonComponent = null;
            }
            else if (ParticleRenderComponent.thisType == comType)
            {
                m_particleRenderComponent = null;
            }
            else if (ScriptComponent.thisType == comType)
            {
                m_scriptComponent = null;
            }
            else if (CameraComponent.thisType == comType)
            {
                m_cameraComponent = null;
            }
            else if (SoundSource.thisType == comType)
            {
                m_SoundSource = null;
            }
            else if (SpriteRenderComponent.thisType == comType)
            {
                m_spriteRenderComponent = null;
            }
#if FMOD_IMPLEMENT
            else if (SoundReverbZone.thisType == comType)
            {
                m_SoundReverb = null;
            }
            else if (SoundHighPassFilterComponent.thisType == comType)
            {
                m_HighPassFilter = null;
            }
            else if (SoundLowPassFilterComponent.thisType == comType)
            {
                m_LowPassFilter = null;
            }
            else if (SoundChorusFilterComponent.thisType == comType)
            {
                m_ChorusFilter = null;
            }
            else if (SoundDistortionFilterComponent.thisType == comType)
            {
                m_DistortionFilter = null;
            }
            else if (SoundEchoFilterComponent.thisType == comType)
            {
                m_EchoFilter = null;
            }
            else if (SoundReverbFilterComponent.thisType == comType)
            {
                m_ReverbFilter = null;
            }
#endif
        }
 extern private static String ICall_AnimationComponent_GetCurrentAnimation(AnimationComponent self);
 private static extern float ICall_AnimationComponent_GetCurrentFrame(AnimationComponent self, String name);
 private static extern int ICall_AnimationComponent_GetCurrentAnimFrameCount(AnimationComponent self);
 private static extern String ICall_AnimationComponent_GetCurrentAnimation(AnimationComponent self);
 private static extern float ICall_AnimationComponent_GetCurAnimCurrentFrame(AnimationComponent self);
 private static extern int ICall_AnimationComponent_GetAnimFrameCount(AnimationComponent self, String name);
 private static extern void ICall_AnimationComponent_CrossFading(AnimationComponent self, String name, int type, float time);
 extern private static float ICall_AnimationComponent_GetCurrentFrame(AnimationComponent self, String name);
 extern private static int ICall_AnimationComponent_GetAnimFrameCount(AnimationComponent self, String name);
 private static extern bool ICall_AnimationComponent_GetNodeTransform(AnimationComponent self, String name, out Matrix44 matrix);
 extern private static int ICall_AnimationComponent_GetWrapMode(AnimationComponent self, String name);
 private static extern int ICall_AnimationComponent_GetWrapMode(AnimationComponent self, String name);
 private static extern void ICall_AnimationComponent_BlendingAnimation(AnimationComponent self, String name, float weight, float time);
 private static extern bool ICall_AnimationComponent_IsAnimationPlaying(AnimationComponent self, String name);
 extern private static void ICall_AnimationComponent_StopAnimation(AnimationComponent self, String name);
 private static extern void ICall_AnimationComponent_RemoveAffectedNodes_2(AnimationComponent self, String animName, String nodeName, bool recursive);
 extern private static void ICall_AnimationComponent_SetAnimationSpeed(AnimationComponent self, String name, float speed);
 private static extern void ICall_AnimationComponent_RemoveAttachedActor(AnimationComponent self, Actor actor);
 extern private static void ICall_AnimationComponent_SetAnimationLayer(AnimationComponent self, String name, int layer);
 private static extern void ICall_AnimationComponent_SetAnimationID(AnimationComponent self, String id);
 extern private static void ICall_AnimationComponent_AddAttachedActor(AnimationComponent self, Actor actor, String skelName);
 private static extern void ICall_AnimationComponent_SetAnimationLayer(AnimationComponent self, String name, int layer);
 extern private static bool ICall_AnimationComponent_IsAnimationPlaying(AnimationComponent self, String name);
 private static extern void ICall_AnimationComponent_SetAnimationSpeed(AnimationComponent self, String name, float speed);
 extern private static float ICall_AnimationComponent_GetCurAnimCurrentFrame(AnimationComponent self);
 private static extern void ICall_AnimationComponent_SetAnimationWrapMode(AnimationComponent self, String name, int wrapMode);
 extern private static int ICall_AnimationComponent_GetCurrentAnimFrameCount(AnimationComponent self);
 private static extern void ICall_AnimationComponent_StopAnimation(AnimationComponent self, String name);
 extern private static bool ICall_AnimationComponent_GetNodeTransform(AnimationComponent self, String name, out Matrix44 matrix);
Esempio n. 37
0
 extern private static bool ICall_AnimationComponent_ContainAnimationID(AnimationComponent self, String id);
Esempio n. 38
0
        // - private function
        private void AssignComponent(Component component)
        {
            System.Type comType = component.GetType();
            if (AnimationComponent.thisType == comType)
            {
                m_animationComponent = component as AnimationComponent;
            }
            else if (MeshRenderComponent.thisType == comType)
            {
                m_meshRenderComponent = component as MeshRenderComponent;
            }
            else if (SkinnedMeshRenderComponent.thisType == comType)
            {
                m_skinnedMeshRenderComponent = component as SkinnedMeshRenderComponent;
            }
            else if (ProjectorRenderComponent.thisType == comType)
            {
                m_projectorRenderComponent = component as ProjectorRenderComponent;
                m_projectorRenderComponent.EnableProjector = true;
                m_projectorRenderComponent.SetMaterialID(0, "sys:projector.material", false);
            }
            else if (SkeletonComponent.thisType == comType)
            {
                m_skeletonComponent = component as SkeletonComponent;
            }
            else if (ParticleRenderComponent.thisType == comType)
            {
                m_particleRenderComponent = component as ParticleRenderComponent;
            }
            else if (SpriteRenderComponent.thisType == comType)
            {
                m_spriteRenderComponent = component as SpriteRenderComponent;
            }
            else if (ScriptComponent.thisType == comType)
            {
                m_scriptComponent = component as ScriptComponent;
            }
            else if (CameraComponent.thisType == comType)
            {
                m_cameraComponent = component as CameraComponent;
            }
            else if (SoundSource.thisType == comType)
            {
                m_SoundSource = component as SoundSource;
            }
#if FMOD_IMPLEMENT
            else if (SoundReverbZone.thisType == comType)
            {
                m_SoundReverb = component as SoundReverbZone;
            }
            else if (SoundHighPassFilterComponent.thisType == comType)
            {
                m_HighPassFilter = component as SoundHighPassFilterComponent;
            }
            else if (SoundLowPassFilterComponent.thisType == comType)
            {
                m_LowPassFilter = component as SoundLowPassFilterComponent;
            }
            else if (SoundChorusFilterComponent.thisType == comType)
            {
                m_ChorusFilter = component as SoundChorusFilterComponent;
            }
            else if (SoundDistortionFilterComponent.thisType == comType)
            {
                m_DistortionFilter = component as SoundDistortionFilterComponent;
            }
            else if (SoundEchoFilterComponent.thisType == comType)
            {
                m_EchoFilter = component as SoundEchoFilterComponent;
            }
            else if (SoundReverbFilterComponent.thisType == comType)
            {
                m_ReverbFilter = component as SoundReverbFilterComponent;
            }
#endif
        }
Esempio n. 39
0
 extern private static bool ICall_AnimationComponent_AnimationIDLoaded(AnimationComponent self, String id);
 extern private static void ICall_AnimationComponent_SetAnimationID(AnimationComponent self, String id);
 private static extern void ICall_AnimationComponent_AddAttachedActor(AnimationComponent self, Actor actor, String skelName);