CampfireParty.Building_Pyre.GetPartyAreaCells C# (CSharp) Method

GetPartyAreaCells() protected static method

protected static GetPartyAreaCells ( IntVec3 pyrePosition ) : List
pyrePosition IntVec3
return List
        protected static List<IntVec3> GetPartyAreaCells(IntVec3 pyrePosition)
        {
            IEnumerable<IntVec3> cellsInRange = GenRadial.RadialCellsAround(pyrePosition, partyAreaRadius, true);
            List<IntVec3> partyAreaCells = new List<IntVec3>();
            foreach (IntVec3 cell in cellsInRange)
            {
                if (cell.GetRoom() == pyrePosition.GetRoom())
                {
                    partyAreaCells.Add(cell);
                }
            }
            return partyAreaCells;
        }