Ejemplo n.º 1
0
        public bool                         Injected(ModHelperDef def)
        {
            if (def.MapComponents.NullOrEmpty())
            {
                return(true);
            }

            var colonyMapComponents = Find.Map.components;

            foreach (var componentType in def.MapComponents)
            {
                if (Find_Extensions.MapComponent(componentType) == null)
                {
                    return(false);
                }
            }

            return(true);
        }