Пример #1
0
 public void ExtractReactorFile()
 {
     foreach (WzImage reactorImage in this["reactor"].WzDirectory.WzImages)
     {
         ReactorInfo reactor = ReactorInfo.Load(reactorImage);
         Program.InfoManager.Reactors[reactor.ID] = reactor;
     }
 }
Пример #2
0
 public static void Reload(ReactorInfo objToReload)
 {
     if (objToReload.Image == null)
     {
         objToReload = Load((WzImage)objToReload.ParentObject);
     }
     else
     {
         objToReload = Load((WzImage)objToReload.ParentObject);
         objToReload.ParseImage();
     }
 }
Пример #3
0
 public ReactorInstance(ReactorInfo baseInfo, Board board, int x, int y, int reactorTime, string name, bool flip, bool beforeAdding)
     : base(board, x, y, -1, beforeAdding)
 {
     this.baseInfo    = baseInfo;
     this.reactorTime = reactorTime;
     this.flip        = flip;
     this.name        = name;
     if (flip)
     {
         X -= Width - 2 * Origin.X;
     }
 }
Пример #4
0
 public static void Reload(ReactorInfo objToReload)
 {
     if (objToReload.Image == null)
         objToReload = Load((WzImage)objToReload.ParentObject);
     else
     {
         objToReload = Load((WzImage)objToReload.ParentObject);
         objToReload.ParseImage();
     }
 }
Пример #5
0
 public ReactorInstance(ReactorInfo baseInfo, Board board, int x, int y, int reactorTime, string name, bool flip, bool beforeAdding)
     : base(board, x, y, -1, beforeAdding)
 {
     this.baseInfo = baseInfo;
     this.reactorTime = reactorTime;
     this.flip = flip;
     this.name = name;
     if (flip)
         X -= Width - 2 * Origin.X;
 }