示例#1
0
        public void ResumeFromSave(Builder_ProgrammableBlock builder)
        {
            if (this.m_block.EntityId != builder.BlockId)
            {
                throw new ArgumentException("Serialized block id " + builder.BlockId + " does not match block id " + this.m_block.EntityId);
            }

            this.m_handleDetectedTerminal = builder.HandleDetected;
            this.m_blockCountList_sb      = new StringBuilder(builder.BlockCountList);
        }
示例#2
0
        public void ResumeFromSave(Builder_ProgrammableBlock builder)
        {
            if (this.m_block.EntityId != builder.BlockId)
                throw new ArgumentException("Serialized block id " + builder.BlockId + " does not match block id " + this.m_block.EntityId);

            this.m_handleDetectedTerminal = builder.HandleDetected;
            this.m_blockCountList_sb = new StringBuilder(builder.BlockCountList);
        }