Example #1
0
        public override void OnLocationChange(Point3D oldlocation)
        {
            base.OnLocationChange(oldlocation);

            if (Chest1 != null && !Chest1.Deleted)
            {
                Chest1.MoveToWorld(new Point3D(X + 1, Y + 1, Z + 11), Map);
            }

            if (Chest2 != null && !Chest2.Deleted)
            {
                Chest2.MoveToWorld(new Point3D(X, Y + 1, Z + 11), Map);
            }
        }
Example #2
0
        public override void Delete()
        {
            base.Delete();

            if (Chest1 != null && !Chest1.Deleted)
            {
                Chest1.Delete();
            }

            if (Chest2 != null && !Chest2.Deleted)
            {
                Chest2.Delete();
            }

            if (Stations != null && Stations.Contains(this))
            {
                Stations.Remove(this);
            }
        }