Class ScriptComponent
Script component.
[DataContract("ScriptComponent", Inherited = true)]
[DefaultEntityComponentProcessor(typeof(ScriptProcessor), ExecutionMode = ExecutionMode.Runtime)]
[Display(null, null, Expand = ExpandRule.Once)]
[ComponentOrder(1000)]
[ComponentCategory("Scripts")]
public abstract class ScriptComponent : EntityComponent, IIdentifiable, ICollectorHolder- Inheritance
- 
      objectScriptComponent
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ScriptComponent()
protected ScriptComponent()Fields
LiveScriptingMask
public const uint LiveScriptingMask = 128Field Value
ScriptGlobalProfilingKey
The global profiling key for scripts. Activate/deactivate this key to activate/deactivate profiling for all your scripts.
public static readonly ProfilingKey ScriptGlobalProfilingKeyField Value
Properties
Audio
public AudioSystem Audio { get; }Property Value
Collector
The object collector associated with this script.
public ObjectCollector Collector { get; }Property Value
Content
public ContentManager Content { get; }Property Value
DebugText
public DebugTextSystem DebugText { get; }Property Value
EffectSystem
public EffectSystem EffectSystem { get; }Property Value
Game
public IGame Game { get; }Property Value
GameProfiler
public GameProfilingSystem GameProfiler { get; }Property Value
GraphicsDevice
public GraphicsDevice GraphicsDevice { get; }Property Value
Input
public InputManager Input { get; }Property Value
IsLiveReloading
Determines whether the script is currently undergoing live reloading.
public bool IsLiveReloading { get; }Property Value
Log
protected Logger Log { get; }Property Value
Priority
The priority this script will be scheduled with (compared to other scripts).
[DataMember(10000)]
public int Priority { get; set; }Property Value
ProfilingKey
Gets the profiling key to activate/deactivate profiling for the current script class.
public ProfilingKey ProfilingKey { get; }Property Value
SceneSystem
public SceneSystem SceneSystem { get; }Property Value
Script
public ScriptSystem Script { get; }Property Value
Services
public IServiceRegistry Services { get; }Property Value
SpriteAnimation
public SpriteAnimationSystem SpriteAnimation { get; }Property Value
Streaming
Gets the streaming system.
public StreamingManager Streaming { get; }Property Value
- StreamingManager
- The streaming system. 
Methods
Cancel()
Called when the script's update loop is canceled.
public virtual void Cancel()PriorityUpdated()
Internal helper function called when Priority is changed.
protected virtual void PriorityUpdated()