public Player() { m_location = new LocationComponent(this); m_locationNext = new LocationComponent(this); m_locationFinal = new LocationComponent(this); m_locationMoving = new LocationComponent(this); Intersections = new List<Tuple<Vector2, int, double>>(); MovingPercent = 100f; MovingDuration = 5.0; }
public PlayerDestination() { m_location = new LocationComponent(this); m_rigidBody = new RigidBodyComponent(this, m_location); }
public RigidBodyComponent(Entity entity, LocationComponent location) : base(entity) { m_location = location; Velocity = new Vector2(0, 0); }
public RestrictLocationComponent(Entity entity, LocationComponent location) : base(entity) { m_location = location; }
public Camera() { m_location = new LocationComponent(this); m_target = new FollowTargetComponent(this, m_location); m_restrictPosition = new RestrictLocationComponent(this, m_location); }
public FollowTargetComponent(Entity entity, LocationComponent location) : base(entity) { m_location = location; }