Пример #1
0
        public SavedUnitFC(MilUnitFC unit)
        {
            Pawn pawn = unit.defaultPawn;

            name = unit.name;
            if (pawn.equipment?.Primary != null)
            {
                weapon = new SavedThing(pawn.equipment.Primary);
            }

            apparel    = pawn.apparel.WornApparel.Select(a => new SavedThing(a)).ToList();
            isTrader   = unit.isTrader;
            isCivilian = unit.isCivilian;
            animal     = unit.animal;
            pawnKind   = unit.pawnKind;
        }