コード例 #1
0
ファイル: EventManager.cs プロジェクト: KHCmaster/PPD
        private void InnerStruct(PPDGameUtility ppdgameutility, MainGameConfigBase config, FlowScriptManager scriptManager)
        {
            this.config        = config;
            this.defaultbpm    = ppdgameutility.SongInformation.BPM;
            this.scriptManager = scriptManager;

            BPMManager.CurrentBPM = defaultbpm;
            BPMManager.TargetBPM  = defaultbpm;

            displayStateCache      = new SortedList <float, DisplayState>();
            noteTypeCache          = new SortedList <float, NoteType>();
            initializeOrderCache   = new SortedList <float, ButtonType[]>();
            slideScaleCache        = new SortedList <float, float>();
            defaultInitializeOrder = new ButtonType[10];
            for (int i = 0; i < 10; i++)
            {
                defaultInitializeOrder[i] = (ButtonType)i;
            }
            for (int i = 0; i < volumePercents.Length; i++)
            {
                volumePercents[i] = 90;
                keepPlayings[i]   = false;
            }
            if (initialized)
            {
                InitializeState();
            }
        }
コード例 #2
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);
            };
        }
コード例 #3
0
ファイル: EventManager.cs プロジェクト: KHCmaster/PPD
 public EventManager(PPDGameUtility ppdgameutility, Stream stream, MainGameConfigBase config, FlowScriptManager scriptManager)
 {
     LoadData(stream);
     InnerStruct(ppdgameutility, config, scriptManager);
 }
コード例 #4
0
ファイル: EventManager.cs プロジェクト: KHCmaster/PPD
 public EventManager(PPDGameUtility ppdgameutility, MainGameConfigBase config, FlowScriptManager scriptManager)
 {
     LoadData(ppdgameutility.SongInformation.DirectoryPath, ppdgameutility.Difficulty);
     InnerStruct(ppdgameutility, config, scriptManager);
 }
コード例 #5
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();
 }