Example #1
0
 public void Dispose()
 {
     disposed = true;
     roomItemHandler = null;
     handler = null;
     if (items != null)
         items.Clear();
     items = null;
 }
Example #2
0
 public PositionReset(List<RoomItem> items, int delay, RoomItemHandling roomItemHandler, WiredHandler handler, uint itemID)
 {
     this.items = items;
     this.delay = delay;
     this.roomItemHandler = roomItemHandler;
     this.cycles = 0;
     this.itemID = itemID;
     this.handler = handler;
     this.disposed = false;
 }
Example #3
0
        public PositionReset(List<RoomItem> items, int delay, RoomItemHandling roomItemHandler, WiredHandler handler, RoomItem item)
        {
            this.items = items;
            originalItemLocation = new Dictionary<uint, OriginalItemLocation>(items.Count);

            foreach (RoomItem nItem in items)
            {
                this.originalItemLocation.Add(nItem.Id, new OriginalItemLocation(nItem.Id, nItem.GetX, nItem.GetY, nItem.Height, nItem.Rot, nItem.ExtraData));
            }
            this.delay = delay;
            this.roomItemHandler = roomItemHandler;
            this.cycles = 0;
            this.item = item;
            this.handler = handler;
            this.disposed = false;
            AttatchListenersToItems();
        }
Example #4
0
 public PositionReset(List<RoomItem> items, int delay, RoomItemHandling roomItemHandler, WiredHandler handler, uint itemID,
     int pos, int rot, int state)
 {
     this.items = items;
     this.delay = delay;
     this.roomItemHandler = roomItemHandler;
     this.cycles = 0;
     this.MatchPos = pos;
     this.MatchRot = rot;
     this.MatchState = state;
     this.itemID = itemID;
     this.handler = handler;
     this.disposed = false;
     this.State = new Dictionary<RoomItem, string>();
     this.Rot = new Dictionary<RoomItem, int>();
     this.Pos = new Dictionary<RoomItem, Point>();
 }
Example #5
0
 public void Dispose()
 {
     disposed = true;
     roomItemHandler = null;
     handler = null;
     DetatchFromListeners();
     if (items != null)
         items.Clear();
     items = null;
 }