Files
MonoGame.Extended/Source/Demos/Demo.Platformer/Entities/Components/PlayerComponent.cs
T
Lucas Girouard-StranksandDylan Wilson 2725d02715 Artemis Entity Component System (#360)
* artemis ecs

* Working on StarWarrior

* Refactor for bugs

* demo works :)

* Fix pool bug

* Fix string typo

* ObjectPool garbage optimization

* Aspect attribute

* Remove BigInteger

* Fix demo

* Refactor for events

* wip on platformer demo

* Fix typo
2017-04-02 18:16:39 +10:00

24 lines
534 B
C#

using System;
using MonoGame.Extended.Entities;
namespace Demo.Platformer.Entities.Components
{
[EntityComponent]
[EntityComponentPool(InitialSize = 1)]
public class PlayerComponent : EntityComponent
{
public float WalkSpeed { get; set; }
public float JumpSpeed { get; set; }
public bool IsJumping { get; set; }
public override void Reset()
{
base.Reset();
WalkSpeed = 0;
JumpSpeed = 0;
IsJumping = false;
}
}
}