Ejemplo n.º 1
0
        public override void Added(Monocle.Scene scene)
        {
            base.Added(scene);
            Level level = scene as Level;
            bool  flag  = level == null;

            if (!flag)
            {
                start      = Position;
                startLevel = level.Session.Level;
            }
        }
Ejemplo n.º 2
0
 private static void DreamBlockAdded(On.Celeste.DreamBlock.orig_Added orig, DreamBlock self, Monocle.Scene scene)
 {
     orig(self, scene);
     if (AdventureHelperModule.Settings.CombineDreamBlocks && !AdventureHelperModule.Session.DreamBlocksNotToCombine.Contains(self))
     {
         AdventureHelperModule.Session.DreamBlocksToCombine.Add(self);
         DreamBlockCombiner combiner = self.Scene.Tracker.GetEntity <DreamBlockCombiner>();
         if (combiner == null)
         {
             self.Scene.Add(combiner = new DreamBlockCombiner());
         }
     }
 }
Ejemplo n.º 3
0
 private static void EntityRemoved(On.Monocle.Entity.orig_Removed orig, Monocle.Entity self, Monocle.Scene scene)
 {
     if (AdventureHelperModule.Settings.CombineDreamBlocks)
     {
         if (self is DreamBlock)
         {
             AdventureHelperModule.Session.DreamBlocksToCombine.Remove(self as DreamBlock);
         }
     }
     orig(self, scene);
 }