Example #1
0
 public Changelog(OldGlobal g, string updateName, string content, UpdateType type, ulong id)
 {
     g.Version.Update(type);
     Name    = updateName;
     Content = content;
     Type    = type;
     Id      = id;
     Version = g.Version;
     Date    = DateTime.Now;
 }
Example #2
0
 public void EnsureGlobal()
 {
     if (!Global.TryGetObject(out OldGlobal value))
     {
         Update(new OldGlobal());
     }
     else
     {
         Global = value;
     }
 }
Example #3
0
 public void Update(OldGlobal g)
 {
     Global.SetObject(g);
     g.Save();
 }