public override void Start() { if (ActorBindingID.Value == "" || ActorBindingID.Value == null) { return; } string viewID = ParentActor.ObjectViewID.ToString(); _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(viewID)); PtrClass a = ((IVdsGroupInterface)_currentView.GameLayer).GetObjectByID(ActorBindingID.Value); if (a != null) { _motioObject = a as VdsActor; } _soundEffect = new VdsEffectSound(true); _soundEffect.SoundFileName = SoundFileName.Value; _soundEffect.SoundLoop = SoundLoop.Value; _soundEffect.SoundGain = SoundGain.Value; _soundEffect.SoundPitch = SoundPitch.Value; _soundEffect.ListenerRelative = ListenerRelative.Value; _soundEffect.MaxDistance = MaxDistance.Value; _soundEffect.SoundRolloffFactor = SoundRolloffFactor.Value; _behaviourIsWorking = true; }
public override void End() { _currentView = null; _targetObject = null; _behaviourIsWorking = false; base.End(); }
public override void End() { _behaviourIsWorking = false; _currentView = null; CameraStartPose = null; base.End(); }
public override void End() { _currentView = null; _behaviourIsWorking = false; _haveBeenSet = false; base.End(); }
public override void Start() { string viewID = ParentActor.ObjectViewID.ToString(); _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(viewID)); _behaviourIsWorking = true; _haveBeenSet = false; }
protected override void BuildLayerInternal() { base.BuildLayerInternal(); if (_currentView == null) { _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(ObjectViewID)); _currentView.ViewEvent.VdsViewEventEvent_GameLayerAddActorEvent += _viewEvent_VdsViewEventEvent_GameLayerAddActorEvent; _currentView.ViewEvent.VdsViewEventEvent_GameLayerRemoveActorEvent += _viewEvent_VdsViewEventEvent_GameLayerRemoveActorEvent; } }
protected override void BuildLayerInternal() { base.BuildLayerInternal(); if (_currentView == null) { _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(ObjectViewID)); _currentView.ViewEvent.VdsViewEventEvent_PlayPlotScriptEventEvent += ViewEvent_VdsViewEventEvent_PlayPlotScriptEventEvent; _currentView.ViewEvent.VdsViewEventEvent_StopPlotScriptEventEvent += ViewEvent_VdsViewEventEvent_StopPlotScriptEventEvent; _currentView.ViewEvent.VdsViewEventEvent_PausePlotScriptEventEvent += ViewEvent_VdsViewEventEvent_PausePlotScriptEventEvent; } }
public override void End() { if (_currentView != null && _createObject != null && _haveBeenSet) { ((IVdsGroupInterface)_currentView.GameLayer).RemoveChild(_createObject); _createObject = null; } _behaviourIsWorking = false; _currentView = null; base.End(); }
public override void End() { if (_currentView != null && _motioObject != null) { _soundEffect.Unapply(); _soundEffect = null; } _behaviourIsWorking = false; _currentView = null; base.End(); }
public override void Start() { if (ActorBindingID.Value == "" || ActorBindingID.Value == null) { return; } _haveBeenSet = false; string viewID = ParentActor.ObjectViewID.ToString(); _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(viewID)); PtrClass a = ((IVdsGroupInterface)_currentView.GameLayer).GetObjectByID(ActorBindingID.Value); if (a == null) { if (ActorResource.Value == "") { return; } else { string sourceStr = Path.GetFileName(ActorResource.Value); if (sourceStr.EndsWith(".vds")) { _createObject = new VdsActor(sourceStr); } else if (sourceStr.EndsWith(".vdsa")) { _createObject = new VdsGameActor(sourceStr); } else { return; } } } else { _createObject = a as VdsActor; } if (_createObject.NativeHandle == IntPtr.Zero) { _createObject = null; return; } if (a == null) { _createObject.ObjectBindID = ActorBindingID.Value; _createObject.ActorStatus = "DefaultStatus"; } VdsPlotEvent pEvent = ParentActor as VdsPlotEvent; _behaviourIsWorking = true; }
public override void End() { if (_currentView != null && _motioObject != null) { _motioObject = null; } _relevanceObject = null; _relevanceMatrixd = null; _behaviourIsWorking = false; _currentView = null; base.End(); }
public override void Start() { string viewID = ParentActor.ObjectViewID.ToString(); _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(viewID)); _behaviourIsWorking = true; _haveBeenSet = false; _loadingWidget = new VdsLoadingWidget(); _loadingWidget.BackgroundImage = BackgroundImage.Value; _loadingWidget.ProgressBackgroundImage = ProgressBackgroundImage.Value; _loadingWidget.ProgressText = ProgressText.Value; }
public override void Start() { if (ActorBindingID.Value == "" || ActorBindingID.Value == null) { return; } string viewID = ParentActor.ObjectViewID.ToString(); _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(viewID)); InitMotioObject(); VdsPlotEvent pEvent = ParentActor as VdsPlotEvent; _behaviourIsWorking = true; }
public override void End() { if (_currentView != null && _motioObject != null) { _motioObject = null; } _relevanceObject = null; _relevanceMatrixd = null; _parentLocalToWorld = null; _behaviourIsWorking = false; _originPose = null; _originPos = null; _targetPose = null; _currentView = null; base.End(); }
private void ActivateGameActor() { if (_currentView == null) { _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(ObjectViewID)); } PtrClass[] baseActorList = GetAllChildrenInternal(typeof(VdsTrigger), true, false); if (baseActorList == null) { return; } foreach (PtrClass p in baseActorList) { VdsTrigger t = p as VdsTrigger; AddTriggerRecord(t.ProduceImmediately()); } }
public override void Start() { if (FollowActorID.Value == null || FollowActorID.Value == "") { return; } string viewID = ParentActor.ObjectViewID.ToString(); _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(viewID)); PtrClass a = ((IVdsGroupInterface)_currentView.GameLayer).GetObjectByID(FollowActorID.Value); if (a != null) { _targetObject = a as VdsActor; } _behaviourIsWorking = true; _haveBeenSet = false; }
public override void Start() { if (ActorBindingID.Value == "" || ActorBindingID.Value == null) { return; } string viewID = ParentActor.ObjectViewID.ToString(); _currentView = VdsEngineSystem.Instance.GetVdsViewByID(Convert.ToInt32(viewID)); InitMotioObject(); double totalLength = 0; for (int i = 0; i < ActorMotionKeyPoints.ValueList.Count - 1; ++i) { totalLength += (ActorMotionKeyPoints.ValueList[i] - ActorMotionKeyPoints.ValueList[i + 1]).Length(); } VdsPlotEvent pEvent = ParentActor as VdsPlotEvent; _motionSpeed = totalLength / pEvent.EventDurationTime; _behaviourIsWorking = true; }