Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the RoomInstance class.
        /// </summary>
        public RoomInstance()

            : base("RoomInstance", "RoomInstance",
                   "RoomInstance",
                   "FloorPlanGen", "RoomProgram")
        {
            RoomName = "Room " + RoomId.ToString();
            RoomId   = maxId++;


            m_attributes = new RoomInstanceAttributes(this);

            // if (m_attributes is RoomInstanceAttributes)
            foreach (RoomInstance room in (m_attributes as RoomInstanceAttributes).targetObjectList)
            {
                (m_attributes as RoomInstanceAttributes).RemoveAdjacence(room as RoomInstance);
            }

            //(m_attributes as RoomInstanceAttributes).targetObjectList.Clear();
            //(m_attributes as RoomInstanceAttributes).writerTargetObjectsListString = new string[0];
        }
Esempio n. 2
0
 public override void CreateAttributes()
 {
     m_attributes = new RoomInstanceAttributes(this);
 }