protected void Load_FillInDetails(PropertyReader r, Game game) { this.x = r.GetInt("x"); this.y = r.GetInt("y"); this.layer = r.GetInt("layer"); this.corrX = r.GetInt("corrX"); this.corrY = r.GetInt("corrY"); string scriptText = r.GetString("action"); if (scriptText != "") { this.action = game.vm.LoadResumableScript(scriptText); this.action.Owner = this; } scriptText = r.GetString("movement"); if (scriptText != "") { this.movementAI = new ScriptedMovementAI(scriptText, game); } scriptText = r.GetString("collide"); if (scriptText != "") { this.Collide = game.vm.LoadResumableScript(scriptText); this.Collide.Owner = this; } Turn((Dir)Enum.Parse(typeof(Dir), r.GetString("facing"))); this.moving = (Dir)Enum.Parse(typeof(Dir), r.GetString("moving")); }