상속: ScriptRuntime.Component
예제 #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 int ICall_SoundSource_GetRolloffMode(SoundSource self);
예제 #3
0
 private static extern bool ICall_SoundSource_IsPaused(SoundSource self);
예제 #4
0
 private static extern float ICall_SoundSource_GetSpread(SoundSource self);
예제 #5
0
 private static extern float ICall_SoundSource_GetPitch(SoundSource self);
예제 #6
0
 private static extern UInt32 ICall_SoundSource_GetLength(SoundSource self);
예제 #7
0
 private static extern void ICall_SoundSource_Stop(SoundSource self);
예제 #8
0
 private static extern void ICall_SoundSource_SetPriority(SoundSource self, int priority);
 extern private static bool ICall_SoundSource_IsPlaying(SoundSource self);
 extern private static void ICall_SoundSource_Pause(SoundSource self);
 extern private static void ICall_SoundSource_Stop(SoundSource self);
 extern private static void ICall_SoundSource_SetName(SoundSource self, String pMonoString, int loadpriority);
 extern private static String ICall_SoundSource_GetName(SoundSource self);
 extern private static bool ICall_SoundSource_IsAllLoaded(SoundSource self);
 extern private static void ICall_SoundSource_SetRolloffMode(SoundSource self, int rolloffMode);
예제 #16
0
 private static extern void ICall_SoundSource_SetName(SoundSource self, String pMonoString, int loadpriority);
예제 #17
0
 private static extern void ICall_SoundSource_SetPitch(SoundSource self, float pitch);
 extern private static bool ICall_SoundSource_IsPaused(SoundSource self);
예제 #19
0
 private static extern void ICall_SoundSource_SetSpread(SoundSource self, float spread);
 extern private static void ICall_SoundSource_SetLoop(SoundSource self, bool bLoop);
예제 #21
0
 private static extern float ICall_SoundSource_GetDopplerLevel(SoundSource self);
 extern private static float ICall_SoundSource_GetVolume(SoundSource self);
예제 #23
0
 private static extern bool ICall_SoundSource_GetMute(SoundSource self);
 extern private static void ICall_SoundSource_SetVolume(SoundSource self, float volume);
예제 #25
0
 private static extern int ICall_SoundSource_GetPriority(SoundSource self);
 extern private static bool ICall_SoundSource_GetMute(SoundSource self);
예제 #27
0
 private static extern bool ICall_SoundSource_Is3D(SoundSource self);
 extern private static void ICall_SoundSource_SetMute(SoundSource self, bool mute);
예제 #29
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 bool ICall_SoundSource_Is3D(SoundSource self);
예제 #31
0
 private static extern void ICall_SoundSource_SetMute(SoundSource self, bool mute);
 extern private static void ICall_SoundSource_Set3D(SoundSource self, bool is3D);
예제 #33
0
 private static extern void ICall_SoundSource_SetPan(SoundSource self, float pan);
 extern private static UInt32 ICall_SoundSource_GetLength(SoundSource self);
예제 #35
0
 private static extern void ICall_SoundSource_SetPosition(SoundSource self, UInt32 position);
 extern private static float ICall_SoundSource_GetPitch(SoundSource self);
예제 #37
0
 private static extern void ICall_SoundSource_SetRolloffMode(SoundSource self, int rolloffMode);
 extern private static void ICall_SoundSource_SetPitch(SoundSource self, float pitch);
예제 #39
0
 private static extern void ICall_SoundSource_SetVolume(SoundSource self, float volume);
 extern private static float ICall_SoundSource_GetDopplerLevel(SoundSource self);
예제 #41
0
 private static extern bool ICall_SoundSource_GetAutoPlay(SoundSource self);
 extern private static void ICall_SoundSource_SetDopplerLevel(SoundSource self, float level);
예제 #43
0
 private static extern bool ICall_SoundSource_GetIgnoreEffect(SoundSource self);
 extern private static float ICall_SoundSource_GetSpread(SoundSource self);
예제 #45
0
 private static extern float ICall_SoundSource_GetMinDistance(SoundSource self);
 extern private static void ICall_SoundSource_SetSpread(SoundSource self, float spread);
예제 #47
0
 private static extern String ICall_SoundSource_GetName(SoundSource self);
 extern private static int ICall_SoundSource_GetPriority(SoundSource self);
예제 #49
0
 private static extern UInt32 ICall_SoundSource_GetPosition(SoundSource self);
 extern private static void ICall_SoundSource_SetPriority(SoundSource self, int priority);
예제 #51
0
 private static extern int ICall_SoundSource_GetRolloffMode(SoundSource self);
 extern private static float ICall_SoundSource_GetMinDistance(SoundSource self);
예제 #53
0
 private static extern float ICall_SoundSource_GetVolume(SoundSource self);
예제 #54
0
 private static extern void ICall_SoundSource_SetDopplerLevel(SoundSource self, float level);
예제 #55
0
 private static extern bool ICall_SoundSource_IsAllLoaded(SoundSource self);
예제 #56
0
 private static extern void ICall_SoundSource_SetIgnoreEffect(SoundSource self, bool IgnoreEffect);
예제 #57
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
        }
예제 #58
0
 private static extern void ICall_SoundSource_SetLoop(SoundSource self, bool bLoop);
예제 #59
0
 private static extern void ICall_SoundSource_SetMinDistance(SoundSource self, float minDistance);
 extern private static void ICall_SoundSource_SetIgnoreEffect(SoundSource self, bool IgnoreEffect);