예제 #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
파일: MapleInfo.cs 프로젝트: xnum/hasuite
 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;
 }