public List <ActionDoable> Activables(LivingBeing lb) { var result = new List <ActionDoable>(); if (lb.IsUserControlled) { ActionDoable act = new ActionDoable { Name = "Go down", Activity = (a) => a.GoMapDown(), Bind = new Keys[] { Keys.LeftShift, Keys.D } }; result.Add(act); } return(result); }
public List <ActionDoable> Activables(LivingBeing lb) { var result = new List <ActionDoable>(); if (lb.IsUserControlled) { var ad = new ActionDoable { Name = "Going upstair", Activity = (a) => a.GoMapUp(), Bind = new Keys[] { Keys.LeftShift, Keys.U } }; result.Add(ad); } return(result); }