Beispiel #1
0
 public void Remove(Pattern3D p)
 {
     if (pattern3DList.Count > 1)
     {
         pattern3DList.Remove(p);
     }
     else
     {
         PatternManager.Remove(this);
     }
 }
Beispiel #2
0
 public static void Reset()
 {
     Misc.RunInMainThread(() =>
     {
         FrameManager.Ins.Reset();
         PaletteManager.Reset();
         PatternManager.Reset();
         Atlas.Reset();
         ScriptManager.Ins.Reset();
         GC.Collect();
     });
     Thread.Sleep(100);
 }
Beispiel #3
0
        public Pattern CreateNewPattern(bool permanent = true, bool autoDetect = true)
        {
            Pattern newPattern = ClonePattern(permanent);

            if (autoDetect)
            {
                newPattern.tSize = optimizedSize;
            }
            newPattern.InitData(this);
            newPattern.pattern3D.Build();

            PatternManager.Add(newPattern);
            return(newPattern);
        }
Beispiel #4
0
        public static void Init(VideoInfo info)
        {
            PaletteManager.Init();
            PatternManager.Init();
            Atlas.Init();
            FrameManager.Init(info);
            Converter.Init(info);
            ScriptManager.Init();

            Emulator.Ins.engine.onStart      += OnStart;
            Emulator.Ins.engine.onEnd        += OnEnd;
            Emulator.Ins.engine.onStartFrame += OnStartFrame;
            Emulator.Ins.engine.onEndFrame   += OnEndFrame;
            Emulator.Ins.engine.onResume     += OnResume;
        }