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);
private static extern bool ICall_SoundSource_IsPaused(SoundSource self);
private static extern float ICall_SoundSource_GetSpread(SoundSource self);
private static extern float ICall_SoundSource_GetPitch(SoundSource self);
private static extern UInt32 ICall_SoundSource_GetLength(SoundSource self);
private static extern void ICall_SoundSource_Stop(SoundSource self);
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);
private static extern void ICall_SoundSource_SetName(SoundSource self, String pMonoString, int loadpriority);
private static extern void ICall_SoundSource_SetPitch(SoundSource self, float pitch);
extern private static bool ICall_SoundSource_IsPaused(SoundSource self);
private static extern void ICall_SoundSource_SetSpread(SoundSource self, float spread);
extern private static void ICall_SoundSource_SetLoop(SoundSource self, bool bLoop);
private static extern float ICall_SoundSource_GetDopplerLevel(SoundSource self);
extern private static float ICall_SoundSource_GetVolume(SoundSource self);
private static extern bool ICall_SoundSource_GetMute(SoundSource self);
extern private static void ICall_SoundSource_SetVolume(SoundSource self, float volume);
private static extern int ICall_SoundSource_GetPriority(SoundSource self);
extern private static bool ICall_SoundSource_GetMute(SoundSource self);
private static extern bool ICall_SoundSource_Is3D(SoundSource self);
extern private static void ICall_SoundSource_SetMute(SoundSource self, bool mute);
// - 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);
private static extern void ICall_SoundSource_SetMute(SoundSource self, bool mute);
extern private static void ICall_SoundSource_Set3D(SoundSource self, bool is3D);
private static extern void ICall_SoundSource_SetPan(SoundSource self, float pan);
extern private static UInt32 ICall_SoundSource_GetLength(SoundSource self);
private static extern void ICall_SoundSource_SetPosition(SoundSource self, UInt32 position);
extern private static float ICall_SoundSource_GetPitch(SoundSource self);
private static extern void ICall_SoundSource_SetRolloffMode(SoundSource self, int rolloffMode);
extern private static void ICall_SoundSource_SetPitch(SoundSource self, float pitch);
private static extern void ICall_SoundSource_SetVolume(SoundSource self, float volume);
extern private static float ICall_SoundSource_GetDopplerLevel(SoundSource self);
private static extern bool ICall_SoundSource_GetAutoPlay(SoundSource self);
extern private static void ICall_SoundSource_SetDopplerLevel(SoundSource self, float level);
private static extern bool ICall_SoundSource_GetIgnoreEffect(SoundSource self);
extern private static float ICall_SoundSource_GetSpread(SoundSource self);
private static extern float ICall_SoundSource_GetMinDistance(SoundSource self);
extern private static void ICall_SoundSource_SetSpread(SoundSource self, float spread);
private static extern String ICall_SoundSource_GetName(SoundSource self);
extern private static int ICall_SoundSource_GetPriority(SoundSource self);
private static extern UInt32 ICall_SoundSource_GetPosition(SoundSource self);
extern private static void ICall_SoundSource_SetPriority(SoundSource self, int priority);
private static extern int ICall_SoundSource_GetRolloffMode(SoundSource self);
extern private static float ICall_SoundSource_GetMinDistance(SoundSource self);
private static extern float ICall_SoundSource_GetVolume(SoundSource self);
private static extern void ICall_SoundSource_SetDopplerLevel(SoundSource self, float level);
private static extern bool ICall_SoundSource_IsAllLoaded(SoundSource self);
private static extern void ICall_SoundSource_SetIgnoreEffect(SoundSource self, bool IgnoreEffect);
// - 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 }
private static extern void ICall_SoundSource_SetLoop(SoundSource self, bool bLoop);
private static extern void ICall_SoundSource_SetMinDistance(SoundSource self, float minDistance);
extern private static void ICall_SoundSource_SetIgnoreEffect(SoundSource self, bool IgnoreEffect);