Skip to content

PlayerMovementAttribute

namespace Griff.Scenes;
public sealed class PlayerMovementAttribute : Attribute

Marks a component that moves its entity for the player who controls it, with no code: a platformer’s or top-down game’s movement. In a network game that player’s own machine moves it (no waiting for the host) and tells everyone where it is, which way it faces, and all of this component’s values.

public static bool IsOn(Component component)

True if component’s type is marked.

public static bool IsOn(Entity entity)

True if one of entity’s components is marked.