Click or drag to resize
BaseComponent Class
A GameObject component API. A component is basically something you can attach to a GameObject, like physics, collision, sound effects, model, etc.
Inheritance Hierarchy
SystemObject
  GeonBit.ECS.ComponentsIComponent
    GeonBit.ECS.ComponentsBaseComponent
      More...

Namespace:  GeonBit.ECS.Components
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public abstract class BaseComponent : IComponent

The BaseComponent type exposes the following members.

Constructors
  NameDescription
Public methodBaseComponent
Create the game component.
Top
Properties
  NameDescription
Public property_GameObject
Get the game object this component is attached to.
Public propertyStatic memberCount
Count how many Component instances currently exist. Note: 'Destroy' doesn't decrease the counter, only when the real class destrcutor is called (eg object is cleared from memory) counter is decreased.
Public propertyEnabled
Is this component currently enabled.
Public propertyName
Get / set the name of this component.
(Inherited from IComponent.)
Top
Methods
  NameDescription
Public methodClone
Clone this component.
Public methodCollisionEnd
Called when this physical body stop colliding with another body.
Public methodCollisionProcess
Called while this physical body is colliding with another body.
Public methodCollisionStart
Called when this physical body start colliding with another body.
Public methodDestroy
Destroy this component.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFixedUpdate
Just like Update(), but called every constant amount of time regardless of FPS and Vsync.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImplementedFrameBasedEvents
Get a list of frame-based events this component implements.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasMethodImplemented
Return if this component has a method implemented.
Public methodHeartbeat
An event that triggers every X miliseconds (defined per GameObject instance).
Public methodRemoveFromParent
Remove this component from parent.
Public methodSendMessage
Send message to this component.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update this component (called every frame parent is active).
Top
Fields
  NameDescription
Public fieldAsDebug
If true, it means this component was added to its parent in debug mode.
Top
See Also
Inheritance Hierarchy
SystemObject
  GeonBit.ECS.ComponentsIComponent
    GeonBit.ECS.ComponentsBaseComponent
      GeonBit.ECS.Components.GraphicsBaseRendererComponent
      GeonBit.ECS.Components.GraphicsCamera
      GeonBit.ECS.Components.GraphicsLight
      GeonBit.ECS.Components.GraphicsSceneBackground
      GeonBit.ECS.Components.MiscCameraEditorController
      GeonBit.ECS.Components.MiscTileMap
      GeonBit.ECS.Components.MiscTimeToLive
      GeonBit.ECS.Components.Particles.AnimatorsBaseAnimator
      GeonBit.ECS.Components.Particles.AnimatorsSpawnRandomizer
      GeonBit.ECS.Components.ParticlesParticleSystem
      GeonBit.ECS.Components.PhysicsBasePhysicsComponent
      GeonBit.ECS.Components.SoundBackgroundMusic
      GeonBit.ECS.Components.SoundSoundEffect