public void ExtractReactorFile() { foreach (WzImage reactorImage in this["reactor"].WzDirectory.WzImages) { ReactorInfo reactor = ReactorInfo.Load(reactorImage); Program.InfoManager.Reactors[reactor.ID] = reactor; } }
public static void Reload(ReactorInfo objToReload) { if (objToReload.Image == null) { objToReload = Load((WzImage)objToReload.ParentObject); } else { objToReload = Load((WzImage)objToReload.ParentObject); objToReload.ParseImage(); } }
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; } }
public static void Reload(ReactorInfo objToReload) { if (objToReload.Image == null) objToReload = Load((WzImage)objToReload.ParentObject); else { objToReload = Load((WzImage)objToReload.ParentObject); objToReload.ParseImage(); } }
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; }