コード例 #1
0
        private void CopyToRoom()
        {
            var brokers = parent.GetRoom()?
                          .ContainedThings(DefOf.BackupPower_Attachment)
                          .OfType <Building_BackupPowerAttachment>()
                          .Where(b => b.Faction == Faction.OfPlayer);

            CopyTo(brokers);
        }