private void OnCopySettings(object data)
    {
        GameObject    gameObject = (GameObject)data;
        BottleEmptier component  = gameObject.GetComponent <BottleEmptier>();

        allowManualPumpingStationFetching = component.allowManualPumpingStationFetching;
    }
Esempio n. 2
0
        public static bool Prefix(BottleEmptier __instance, object data)
        {
            if (!(__instance is BottleEmptier2 instance))
            {
                return(true);
            }
            var other = ((GameObject)data).GetComponent <BottleEmptier2>();

            instance.UserMaxCapacity = other.UserMaxCapacity;
            instance.allowManualPumpingStationFetching = other.allowManualPumpingStationFetching;
            return(false);
        }
    public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
    {
        Prioritizable.AddRef(go);
        Storage storage = go.AddOrGet <Storage>();

        storage.storageFilters = STORAGEFILTERS.GASES;
        storage.showInUI       = true;
        storage.showDescriptor = true;
        storage.capacityKg     = 200f;
        go.AddOrGet <TreeFilterable>();
        BottleEmptier bottleEmptier = go.AddOrGet <BottleEmptier>();

        bottleEmptier.emptyRate = 0.25f;
    }