• Dokumentation (master)
  • Dokumentation (develop)
Show / Hide Table of Contents
  • OctoAwesome
    • Axis
    • Block
    • BlockDefinition
    • Blocks
    • Chunk
    • ChunkColumn
    • Component
    • ComponentList<T>
    • Coordinate
    • Entity
    • EntityComponent
    • EntityFilterAttribute
    • EntityList
    • Extension
    • FailEntityChunkArgs
    • GlobalChunkCache
    • IBlockDefinition
    • IChunk
    • IChunkColumn
    • IClimateMap
    • IDefinition
    • IDefinitionManager
    • IEntityList
    • IExtension
    • IExtensionLoader
    • IExtensionResolver
    • IGlobalChunkCache
    • IInventoryableDefinition
    • IItem
    • IItemDefinition
    • ILocalChunkCache
    • IMapGenerator
    • IMapPopulator
    • Index2
    • Index3
    • InventorySlot
    • IPersistenceManager
    • IPlanet
    • IResource
    • IResourceManager
    • ISettings
    • Item
    • IUniverse
    • LocalBuilder
    • LocalChunkCache
    • MapPopulator
    • OrientationFlags
    • PhysicalProperties
    • Planet
    • PlanetIndex3
    • Player
    • Simulation
    • SimulationComponent
    • SimulationComponent<C1, C2, C3>
    • SimulationComponent<C1, C2>
    • SimulationComponent<C1>
    • SimulationState
    • Universe
    • UpdateableEntity
    • Wall
  • OctoAwesome.Basics
    • ITreeDefinition
    • TreeDefinition
  • OctoAwesome.EntityComponents
    • BodyComponent
    • ControllableComponent
    • HeadComponent
    • InventoryComponent
    • PositionComponent
    • RenderComponent
    • ToolBarComponent
  • OctoAwesome.Runtime
    • DefinitionManager
    • DiskPersistenceManager
    • ExtensionLoader
    • IPlayerController
    • ResourceManager

Class SimulationComponent<C1, C2, C3>

Basisklasse für Simulationskomponenten

Vererbung
System.Object
Component
SimulationComponent
SimulationComponent<C1, C2, C3>
Vererbte Member
SimulationComponent.entities
SimulationComponent.Add(Entity)
SimulationComponent.AddEntity(Entity)
SimulationComponent.Remove(Entity)
SimulationComponent.RemoveEntity(Entity)
Component.Enabled
Component.Serialize(BinaryWriter, IDefinitionManager)
Component.Deserialize(BinaryReader, IDefinitionManager)
Namespace: OctoAwesome
Assembly: OctoAwesome.dll
Syntax
public abstract class SimulationComponent<C1, C2, C3> : SimulationComponent where C1 : EntityComponent where C2 : EntityComponent where C3 : EntityComponent
Typparameter
Name Beschreibung
C1
C2
C3

Methoden

Match(Entity)

Führt ein Vergleich durch, ob diese Entity in die Komponente eingefügt werden kann

Deklaration
protected override bool Match(Entity entity)
Parameter
Typ Name Beschreibung
Entity entity

Vergleichsentity

R�ckgabewert
Typ Beschreibung
System.Boolean

Ergebnis des Vergleiches

Overrides
SimulationComponent.Match(Entity)

Update(GameTime)

Updatemethode der Entity

Deklaration
public override void Update(GameTime gameTime)
Parameter
Typ Name Beschreibung
GameTime gameTime

Spielzeit

Overrides
SimulationComponent.Update(GameTime)

UpdateEntity(GameTime, Entity, C1, C2, C3)

Internes Event, für das Updaten der Simulationskomponente

Deklaration
protected abstract void UpdateEntity(GameTime gameTime, Entity entity, C1 component1, C2 component2, C3 component3)
Parameter
Typ Name Beschreibung
GameTime gameTime

Spielzeit

Entity entity

Entity die geupdatet werden muss

C1 component1

Komponente 1

C2 component2

Komponente 2

C3 component3
Nach oben Projekt OctoAwesome · Projektwebsite · Impressum · Datenschutzerklärung
Generated by DocFX