public override MSystemJob GetJob(MEntity entity) { ComMovement _comMovement = entity.Get <ComMovement>(C.Movement); ComPosition _comPosition = entity.Get <ComPosition>(C.Position); return(new MSystemJob <ComMovement, ComPosition>(_comMovement, _comPosition, UpdatePosition)); }
public T Get <T>(int componentType, bool mustHave = true) where T : MComponent { return(Entity.Get <T>(componentType, mustHave)); }