コード例 #1
0
ファイル: ProgrammableBlock.cs プロジェクト: zrisher/ARMS
        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);
        }