protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { _robotDefinition = RobotDefinition.GetRobotDefinition(); } catch (Exception) { contentPlaceHolder.Controls.Add(new LiteralControl("You need a valid robots.config file in your ~/SiteConfig directory to visit this page.")); } } }
public void SkinBot(RobotDefinition def) { _simpleAnim._frames = def.IdleAnim; _shadow.sprite = def.Shadow; }