C# Class Engine.Objects.Entity

A representation of an entity.
Inheritance: IDisposable
Mostra file Open project: Radnen/sphere-sfml

Public Methods

Method Description
Copy ( ) : Entity

Creates a perfect copy of this entity.

Dispose ( ) : void

Dispose and close this object.

Entity ( BinaryReader stream ) : System

Creates a new entity that was embedded next in the stream

Entity ( EntityType type ) : System

Creates a new Entity with the supplied type.

ExecuteTrigger ( ) : void

Executes the trigger.

Save ( BinaryWriter binwrite ) : void

Saves the entity, embedding it into a file stream.

Private Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Copy() public method

Creates a perfect copy of this entity.
public Copy ( ) : Entity
return Entity

Dispose() public method

Dispose and close this object.
public Dispose ( ) : void
return void

Entity() public method

Creates a new entity that was embedded next in the stream
public Entity ( BinaryReader stream ) : System
stream System.IO.BinaryReader The System.IO.BinaryReader to use.
return System

Entity() public method

Creates a new Entity with the supplied type.
public Entity ( EntityType type ) : System
type EntityType The Entity.EntityType to use.
return System

ExecuteTrigger() public method

Executes the trigger.
public ExecuteTrigger ( ) : void
return void

Save() public method

Saves the entity, embedding it into a file stream.
public Save ( BinaryWriter binwrite ) : void
binwrite System.IO.BinaryWriter The System.IO.BinaryWriter to use.
return void