Exemplo n.º 1
0
        private void InnerStruct(PPDGameUtility gameutility, PPDFramework.Resource.ResourceManager resourceManager, RandomChangeManager randomChangeManager, PPDEffectManager ppdem, MarkImagePathsBase imagepathes, MainGameConfigBase config, FlowScriptManager scriptManager)
        {
            this.gameutility         = gameutility;
            this.randomChangeManager = randomChangeManager;
            this.ppdem           = ppdem;
            this.imagepathes     = imagepathes;
            this.resourceManager = resourceManager;
            this.config          = config;
            this.scriptManager   = scriptManager;
            externalMarks        = new List <MarkData>();

            evals = new float[] { PPDSetting.Setting.CoolArea, PPDSetting.Setting.GoodArea, PPDSetting.Setting.SafeArea, PPDSetting.Setting.SadArea };
            Logger.Instance.AddLog("CoolArea:{0}", PPDSetting.Setting.CoolArea);
            Logger.Instance.AddLog("GoodArea:{0}", PPDSetting.Setting.GoodArea);
            Logger.Instance.AddLog("SafeArea:{0}", PPDSetting.Setting.SafeArea);
            Logger.Instance.AddLog("SadArea:{0}", PPDSetting.Setting.SadArea);
            adjustgaptime = PPDSetting.Setting.AdjustGapTime;
            CreateResource();

            MarkLayer            = new SpriteObject(device);
            ConnectLayer         = new SpriteObject(device);
            postDrawManager      = new PostDrawManager(device);
            markConnectionCommon = new MarkConnectionCommon(device, resourceManager);
            this.AddChild(markConnectionCommon);
            if (PPDSetting.Setting.DrawConnectUnderAllMark)
            {
                this.AddChild(postDrawManager);
                this.AddChild(MarkLayer);
                this.AddChild(ConnectLayer);
            }
            else
            {
                this.AddChild(postDrawManager);
                this.AddChild(ConnectLayer);
                this.AddChild(MarkLayer);
            }
            ConnectLayer.CanDraw += (obj, context, depth, childIndex) =>
            {
                return(gameutility.Connect || gameutility.Profile.Connect);
            };
        }
Exemplo n.º 2
0
 public Mark(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, MarkImagePathsBase filenames, MarkData md, ButtonType type, float[] eval,
             float gap, DisplayState dState, NoteType noteType, int sameTimingMarks, KeyValuePair <string, string>[] parameters, PostDrawManager postDrawManager) : base(device)
 {
     Position             = new Vector2(md.X, md.Y);
     Angle                = md.Angle;
     Time                 = md.Time;
     this.resourceManager = resourceManager;
     this.eval            = eval;
     this.filenames       = filenames;
     this.adjustGapTime   = gap;
     this.sameTimingMarks = sameTimingMarks;
     this.ButtonType      = type;
     this.displayState    = dState;
     this.NoteType        = noteType;
     this.ID              = md.ID;
     Parameters           = new Dictionary <object, object>();
     foreach (var parameter in parameters)
     {
         Parameters[parameter.Key] = parameter.Value;
     }
     this.postDrawManager = postDrawManager;
 }
Exemplo n.º 3
0
 public HoldExMark(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, MarkImagePathsBase filenames, ExMarkData emd, ButtonType type, float[] eval,
                   float gap, DisplayState dState, NoteType noteType, int sameTimingMarks, KeyValuePair <string, string>[] parameters, PostDrawManager postDrawManager)
     : base(device, resourceManager, filenames, emd, type, eval, gap, dState, noteType, sameTimingMarks, parameters, postDrawManager)
 {
 }
Exemplo n.º 4
0
 public MarkManager(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, PPDGameUtility gameutility, RandomChangeManager randomChangeManager, PPDEffectManager ppdem, MarkImagePathsBase imagepathes, MainGameConfigBase config, FlowScriptManager scriptManager, Stream stream) : base(device)
 {
     InnerStruct(gameutility, resourceManager, randomChangeManager, ppdem, imagepathes, config, scriptManager);
     ReadPpdData(stream);
     CheckGroups();
     InitializeRandomChange();
 }