Exemple #1
0
        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);
        }
Exemple #2
0
        ////////////////

        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);
        }
Exemple #3
0
        /// <inheritdoc/>
        public override bool Equals(object obj)
        {
            if (!(obj is Scene))
            {
                return(false);
            }

            Scene other = obj as Scene;

            return(SceneID.Equals(other.SceneID));
        }
Exemple #4
0
 /// <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));
 }