Click or drag to resize

TimeModel Class

The Time class keeps track of the in-simulation time, and how it relates to real-world time.
Inheritance Hierarchy

Namespace:  Livit.Learn.Model
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class TimeModel : BaseModel

The TimeModel type exposes the following members.

Constructors
  NameDescription
Public methodTimeModel
Initializes a new instance of the TimeModel class
Top
Properties
  NameDescription
Public propertyAttached
Defines an attached property.
(Inherited from BaseModel.)
Public propertyComments
(Development) Includes comments in the XML code.
(Inherited from BaseModel.)
Public propertyCurrentTime
Returns the current date and time in the simulation.
Public propertyCurrentTimeSerialized
Public propertyCode exampleDataContext
Contains a source of all bindings defined for element.
(Inherited from BaseModel.)
Public propertyExternalXmlPath (Inherited from BaseModel.)
Public propertyId
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.)
Public propertyIsIdAutogenerated (Inherited from BaseModel.)
Public propertyCode exampleIterationsPerSecond
Defines how often the Engine will update the simulation time per simulation second.
Public propertyStartTime
Defines the start of the simulation date and time.
Public propertyStartTimeSerialized
Public propertyTemplateVersionId
Contains a id of source template.
(Inherited from BaseModel.)
Public propertyTimeLapseMinutes
Determines for how long the TimeLapseMultiplier will be speeding up time.
Public propertyCode exampleTimeLapseMultiplier
Speeds up or slows down the time inside the simulation.
Public propertyTotalMinutesPlayed
Determines total real-time minutes played in the simulation (when loading a save game, this also includes minutes played in previous sessions in the same simulation/save game)
Public propertyXmlComments
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.)
Top
Methods
  NameDescription
Public methodDeepCopy
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.)
Public methodShallowCopy (Inherited from BaseModel.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseModel.)
Public methodUpdateModels
This method will update this model and all its child models.
(Inherited from BaseModel.)
Top
Fields
  NameDescription
Public fieldStatic memberDefaultTimeLapseMinutes
Top
Remarks

This class to keep track of the current time, and also speed up or slow down time inside the simulation.

See Also