protected override SceneBase CreateNextSceneFromNetwork(SceneID sceneId, CutsceneUpdateProtocol netData) { IntroMovieSet set = this.UpdateMovieSetFromNetwork(netData); if (sceneId.Equals(this.FirstSceneId)) { return(new Intro00_SettingScene(set)); } else if (sceneId.Equals(this.SecondSceneId)) { return(Intro01_PiratesScene.Create(this)); } return(null); }
//////////////// protected override SceneBase CreateNextScene(SceneID sceneId) { var currScene = this.CurrentScene as Intro00_SettingScene; IntroMovieSet set = currScene.Set; if (sceneId.Equals(this.FirstSceneId)) { return(new Intro00_SettingScene(set)); } else if (sceneId.Equals(this.SecondSceneId)) { return(Intro01_PiratesScene.Create(this)); } return(null); }
/// <inheritdoc/> public override bool Equals(object obj) { if (!(obj is Scene)) { return(false); } Scene other = obj as Scene; return(SceneID.Equals(other.SceneID)); }
/// <summary> /// In addition to checking if the SceneIDs match, like in Equals, this /// method also checks if all properties for these scenes and all child /// scene nodes also match. /// </summary> /// <param name="other">The scene to compare against.</param> /// <returns></returns> public bool DeepEquals(Scene other) { return(SceneID.Equals(other.SceneID) && Root.DeepEquals(other.Root)); }