示例#1
0
 public object Deserialize(string fileName)
 {
     var ret = new GameScript();
     ret.Path = fileName;
     ret.GameId = GameId;
     ret.Script = File.ReadAllText(fileName);
     return ret;
 }
示例#2
0
 public void Invalidate(GameScript script)
 {
     var s = Scripts.FirstOrDefault(x => x.Path == script.Path);
     if (s == null) return;
     Db.Config.Cache.InvalidateObject(s);
 }