ข้ามไปยังเนื้อหา

Class BehaviorEngineBuilderExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Behaviors.Hosting
Assembly: Cephalon.Behaviors.dll

Extends with behavior topology registration.

public static class BehaviorEngineBuilderExtensions

objectBehaviorEngineBuilderExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddBehaviors(EngineBuilder, Action<IBehaviorCollectionBuilder>?)

Section titled “ AddBehaviors(EngineBuilder, Action<IBehaviorCollectionBuilder>?)”

Adds the behavior topology system to the engine, including catalog, dispatcher, compatibility matrix, and built-in rules.

public static EngineBuilder AddBehaviors(this EngineBuilder engine, Action<IBehaviorCollectionBuilder>? configure = null)

engine EngineBuilder

The engine builder to extend.

configure Action<IBehaviorCollectionBuilder>?

An optional callback to register behaviors fluently.

EngineBuilder

The same engine builder for fluent composition.

AddBehaviors(EngineBuilder, Action<BehaviorOptions>?, Action<IBehaviorCollectionBuilder>?)

Section titled “ AddBehaviors(EngineBuilder, Action<BehaviorOptions>?, Action<IBehaviorCollectionBuilder>?)”

Adds the behavior topology system to the engine with custom options and behavior registration.

public static EngineBuilder AddBehaviors(this EngineBuilder engine, Action<BehaviorOptions>? configureOptions, Action<IBehaviorCollectionBuilder>? configure = null)

engine EngineBuilder

The engine builder to extend.

configureOptions Action<BehaviorOptions>?

An optional callback to configure behavior topology options.

configure Action<IBehaviorCollectionBuilder>?

An optional callback to register behaviors fluently.

EngineBuilder

The same engine builder for fluent composition.