private void ResourceTank_Update( On.Assets.Nimbatus.Scripts.WorldObjects.Items.DroneParts.DronePartResources.ResourceTank.orig_Update orig, ResourceTank self) { self.SetResourceAmount(self.ResourceCapacity); orig(self); }
public void RegisterTank(ResourceTank tank) { if (null == tank) return; if (!tanks.ContainsKey(tank.Type)) { tanks[tank.Type] = new HashSet<ResourceTank>(); } tanks[tank.Type].Add(tank); }
public void DeregisterTank(ResourceTank tank) { if (null == tank) return; if (!tanks.ContainsKey(tank.Type)) return; tanks[tank.Type].Remove(tank); }