Example #1
0
 protected override bool Run()
 {
     GameObject[] lotObjs = base.Target.LotCurrent.GetObjects <GameObject>();
     PuddleManager.FlowingPuddleTuning noah = new PuddleManager.FlowingPuddleTuning();
     noah.MaxNumPuddles       = 100;
     noah.SpawnSpeedInMinutes = 1;
     foreach (GameObject obj2 in lotObjs)
     {
         PuddleManager.AddFlowingPuddle(obj2, noah);
         ChaosModPainting.FloodedObjects.Add(obj2);
     }
     return(true);
 }
Example #2
0
        protected override bool Run()
        {
            base.StandardEntry();
            GameObject objectToFlood = base.GetSelectedObject() as GameObject;

            if (ChaosModPainting.FloodedObjects.Contains(objectToFlood))
            {
                SimpleMessageDialog.Show("Error", "Object is already flooded");
            }
            else
            {
                PuddleManager.FlowingPuddleTuning noah = new PuddleManager.FlowingPuddleTuning();
                noah.MaxNumPuddles = 100;
                PuddleManager.AddFlowingPuddle(objectToFlood, noah);
                ChaosModPainting.FloodedObjects.Add(objectToFlood);
            }
            base.StandardExit();
            return(true);
        }