/// <summary> /// Set the slave <see cref="ActionController"/> of this <see cref="ActionController"/>. /// </summary> /// <param name="target">Target slave controller.</param> /// <param name="targetContext">Target context.</param> /// <param name="enslave">If set to <c>true</c> enslave.</param> /// <param name="targetDatabase">Target database.</param> public void SetSlaveController(ActionController target, uint targetContext, bool enslave, AnimationDatabase targetDatabase = null) { NativeHandle.SetSlaveController(target.NativeHandle, targetContext, enslave, targetDatabase?.NativeHandle); }
/// <summary> /// Set the context of a scope of the <see cref="ActionController"/>. /// </summary> /// <param name="scopeContextId">Scope context identifier.</param> /// <param name="entity">Target Entity.</param> /// <param name="character">Target Character.</param> /// <param name="animationDatabase">Animation database.</param> public void SetScopeContext(uint scopeContextId, Entity entity, Character character, AnimationDatabase animationDatabase) { if (entity == null) { throw new ArgumentNullException(nameof(entity)); } if (character == null) { throw new ArgumentNullException(nameof(character)); } if (animationDatabase == null) { throw new ArgumentNullException(nameof(animationDatabase)); } NativeHandle.SetScopeContext(scopeContextId, entity.NativeHandle, character.NativeHandle, animationDatabase.NativeHandle); }