예제 #1
0
    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));
    }
예제 #2
0
 public T Get <T>(int componentType, bool mustHave = true) where T : MComponent
 {
     return(Entity.Get <T>(componentType, mustHave));
 }