private void GetAllActiveResources()
        {
            List <ResourceEntity> list = Facepunch.Pool.GetList <ResourceEntity>();

            RustEditAPI.GetMapEntitiesOfType <ResourceEntity>(ref list);

            Puts(string.Format("Found {0} active resources", list.Count));

            for (int i = 0; i < list.Count; i++)
            {
                // Do Something
            }

            Facepunch.Pool.FreeList(ref list);
        }
        private void GetAllMapCameras()
        {
            List <CCTV_RC> list = Facepunch.Pool.GetList <CCTV_RC>();

            RustEditAPI.GetMapEntitiesOfType <CCTV_RC>(ref list);

            Puts(string.Format("Found {0} map placed cameras", list.Count));

            for (int i = 0; i < list.Count; i++)
            {
                // Do Something
            }

            Facepunch.Pool.FreeList(ref list);
        }