Skip to content

IBehavior

Inherits object

Public Member Functions

void

LoadContent()

Loads any content or resources required by the behavior.

void

UnloadContent()

Unloads any content or resources held by the behavior.

void

LoadContentIfNeeded()

Loads content only if it is not already loaded.

void

UnloadContentIfNeeded()

Unloads content only if it is currently loaded.

void

Update(SITimeSpan gameTime, SITimeSpan deltaTime)

Updates the behavior logic. Called once per frame.

void

Draw(SITimeSpan gameTime, SITimeSpan deltaTime)

Draws the behavior. Called once per frame during the draw phase.

Properties

bool

ContentLoaded

[get, ]

Gets a value indicating whether the behavior's content is loaded.