public override void Ctrl() { base.Ctrl(); if (this.Time == this.NameTime && this.LastTime < this.Time) { this.CharN = new CharacterName(this.StageData, "ename_Seiryuu"); StoryEmitterStar storyEmitterStar = new StoryEmitterStar(this.StageData, this.CharN.Position, 0.0f, 0.0); this.LastTime = this.Time; } else if (this.Time == this.MusicTime && this.LastTime < this.Time) { this.StageData.ChangeBGM(".\\BGM\\Boss03.wav", 0, 0, (int)byte.MaxValue, 1286397, 6275430); this.LastTime = this.Time; } else { if (this.Time != this.Conv.Count) { return; } MusicTitle musicTitle = new MusicTitle(this.StageData, "青柳传说", new Point(this.BoundRect.Width, this.BoundRect.Height - 16)); musicTitle.OriginalPosition = new PointF((float)this.BoundRect.Width, (float)(this.BoundRect.Height + 100)); musicTitle.Scale = 0.5f; this.Boss.Enabled = true; this.SBox.Dispose(); this.Story = (BaseStory)null; EmitterBossFire emitterBossFire = new EmitterBossFire(this.StageData, this.Boss.OriginalPosition, Color.FromArgb(40, (int)byte.MaxValue, 20)); new MagicCircle(this.StageData, "MagicCircleSix").Scale = 1.5f; this.Background3D.WarpEnabled = true; } }
public override void Ctrl() { base.Ctrl(); if (this.Time != this.Conv.Count) { return; } this.Boss.Enabled = true; this.StageData.ChangeBGM(".\\BGM\\Boss03.wav", 0, 0, (int)byte.MaxValue, 1286397, 6275430); StageDataPackage stageData = this.StageData; Rectangle boundRect1 = this.BoundRect; int width1 = boundRect1.Width; boundRect1 = this.BoundRect; int y = boundRect1.Height - 16; Point DestPoint = new Point(width1, y); MusicTitle musicTitle1 = new MusicTitle(stageData, "青柳传说", DestPoint); MusicTitle musicTitle2 = musicTitle1; Rectangle boundRect2 = this.BoundRect; double width2 = (double)boundRect2.Width; boundRect2 = this.BoundRect; double num = (double)(boundRect2.Height + 100); PointF pointF = new PointF((float)width2, (float)num); musicTitle2.OriginalPosition = pointF; musicTitle1.Scale = 0.5f; this.SBox.Dispose(); this.Story = (BaseStory)null; EmitterBossFire emitterBossFire = new EmitterBossFire(this.StageData, this.Boss.OriginalPosition, Color.FromArgb(40, (int)byte.MaxValue, 20)); new MagicCircle(this.StageData, "MagicCircleSix").Scale = 1.5f; this.Background3D.WarpEnabled = true; }
internal static MusicTitle GetMusicTitle(int musicId) { MusicTitle m = new MusicTitle(musicId); if (musicId > 0) { SafeProcedure.ExecuteAndMapRecords( Database.GetDatabase(D4DDefine.DBInstanceName), "dbo.Music_GetMusicTitle", delegate(IRecord record) { m.Title = record.GetStringOrEmpty(1); m.Body = record.GetStringOrEmpty(2); m.SImage = record.GetStringOrEmpty(3); m.LImage = record.GetStringOrEmpty(4); m.BandId = record.GetInt32OrDefault(5, 0); m.PublishDate = record.GetDateTime(6); m.PublishYear = record.GetInt32OrDefault(7, 0); m.AddUserID = record.GetInt32OrDefault(8, 0); m.AddDate = record.GetDateTime(9); m.Status = (PublishStatus)(record.GetInt32OrDefault(10, 0)); }, musicId); } return(m); }
internal static int SetMusicTitle(MusicTitle m) { if (m == null) { return(-1); } SafeProcedure.ExecuteNonQuery( Database.GetDatabase(D4DDefine.DBInstanceName), "dbo.Music_SetMusicTitle", delegate(IParameterSet parameters) { parameters.AddWithValue("@MusicId", m.MusicId); parameters.AddWithValue("@Title", m.Title); parameters.AddWithValue("@Body", m.Body); parameters.AddWithValue("@SImage", m.SImage); parameters.AddWithValue("@LImage", m.LImage); parameters.AddWithValue("@BandId", m.BandId); parameters.AddWithValue("@PublishDate", m.PublishDate); parameters.AddWithValue("@PublishYear", m.PublishYear); parameters.AddWithValue("@AddUserId", m.AddUserID); parameters.AddWithValue("@Status", (int)(m.Status)); parameters.AddWithValue("@RetVal", DBNull.Value, ParameterDirectionWrap.ReturnValue); }, delegate(IParameterSet outputParameters) { m.MusicId = Convert.ToInt32(outputParameters.GetValue("@RetVal")); }); return(m.MusicId); }
public override void Ctrl() { base.Ctrl(); if (this.Time == this.NameTime && this.LastTime < this.Time) { this.CharN = new CharacterName(this.StageData, "ename_Rika"); this.LastTime = this.Time; } else if (this.Time == this.MusicTime && this.LastTime < this.Time) { this.StageData.ChangeBGM(".\\BGM\\BossEx.wav", 0, 0, (int)byte.MaxValue, 1125873, 10783332); this.LastTime = this.Time; } if (this.Time != this.Conv.Count) { return; } MusicTitle musicTitle = new MusicTitle(this.StageData, "风中花,雪中月", new Point(this.BoundRect.Width, this.BoundRect.Height - 16)); musicTitle.OriginalPosition = new PointF((float)this.BoundRect.Width, (float)(this.BoundRect.Height + 100)); musicTitle.Scale = 0.5f; this.Boss.Enabled = true; this.SBox.Dispose(); this.Story = (BaseStory)null; EmitterBossFire emitterBossFire = new EmitterBossFire(this.StageData, this.Boss.OriginalPosition, Color.Yellow); new MagicCircle(this.StageData, "MagicCircleSix").Scale = 1.5f; this.Background3D.WarpEnabled = true; }
public int SetMusicTitle(MusicTitle m) { if (m == null) { return(-1); } if (m.PublishYear <= 1900 && m.PublishDate != null) { m.PublishYear = m.PublishDate.Year; } return(MusicDao.SetMusicTitle(m)); }
void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else if (instance != null && instance.tag == this.tag) { Destroy(gameObject); } anim = GetComponent <Animator>(); }
public override void Ctrl() { base.Ctrl(); if (this.Time == 3 && this.LastTime < this.Time) { this.LastTime = this.Time; this.CharN = new CharacterName(this.StageData, "ename_Ami"); StoryEmitterStar storyEmitterStar = new StoryEmitterStar(this.StageData, this.CharN.Position, 0.0f, 0.0); } if (this.Time == 15 && this.LastTime < this.Time) { this.LastTime = this.Time; this.StageData.ChangeBGM(".\\BGM\\Boss01.wav", 0, 0, (int)byte.MaxValue, 754110, 3294270); } if (this.Time != this.Conv.Count) { return; } StageDataPackage stageData = this.StageData; Rectangle boundRect = this.BoundRect; int width1 = boundRect.Width; boundRect = this.BoundRect; int y = boundRect.Height - 16; Point DestPoint = new Point(width1, y); MusicTitle musicTitle1 = new MusicTitle(stageData, "喧闹吧!在这不眠之夜", DestPoint); MusicTitle musicTitle2 = musicTitle1; boundRect = this.BoundRect; double width2 = (double)boundRect.Width; boundRect = this.BoundRect; double num = (double)(boundRect.Height + 100); PointF pointF = new PointF((float)width2, (float)num); musicTitle2.OriginalPosition = pointF; musicTitle1.Scale = 0.5f; this.Boss.Enabled = true; this.SBox.Dispose(); this.Story = (BaseStory)null; EmitterBossFire emitterBossFire = new EmitterBossFire(this.StageData, this.Boss.OriginalPosition, Color.FromArgb(40, (int)byte.MaxValue, 20)); new MagicCircle(this.StageData, "MagicCircleSix").Scale = 1.5f; this.Background3D.WarpEnabled = true; }
internal static void MapMusicTitleList(IRecord record, List <MusicTitle> list) { MusicTitle m = new MusicTitle(); m.MusicId = record.GetInt32OrDefault(0, 0); m.Title = record.GetStringOrEmpty(1); m.Body = record.GetStringOrEmpty(2); m.SImage = record.GetStringOrEmpty(3); m.LImage = record.GetStringOrEmpty(4); m.BandId = record.GetInt32OrDefault(5, 0); m.PublishDate = record.GetDateTime(6); m.PublishYear = record.GetInt32OrDefault(7, 0); m.AddUserID = record.GetInt32OrDefault(8, 0); m.AddDate = record.GetDateTime(9); m.Status = (PublishStatus)(record.GetInt32OrDefault(10, 0)); list.Add(m); }