public void Initialize()
        {
            OverallInitializer.Initialize();

            mBaseEntity      = new EntitySave();
            mBaseEntity.Name = "BaseEntityInheritanceTests";
            ObjectFinder.Self.GlueProject.Entities.Add(mBaseEntity);

            NamedObjectSave nos = new NamedObjectSave();

            nos.InstanceName    = "SpriteInstance";
            nos.SourceType      = SourceType.FlatRedBallType;
            nos.SourceClassType = "Sprite";
            nos.SetByDerived    = true;
            mBaseEntity.NamedObjects.Add(nos);

            nos = new NamedObjectSave();
            nos.InstanceName     = "RectInstance";
            nos.SourceType       = SourceType.FlatRedBallType;
            nos.SourceClassType  = "AxisAlignedRectangle";
            nos.ExposedInDerived = true;
            mBaseEntity.NamedObjects.Add(nos);

            mDerivedEntity            = new EntitySave();
            mDerivedEntity.Name       = "DerivedentityInheritanceTests";
            mDerivedEntity.BaseEntity = mBaseEntity.Name;
            mDerivedEntity.UpdateFromBaseType();
            ObjectFinder.Self.GlueProject.Entities.Add(mDerivedEntity);

            mDerivedElementRuntime = new ElementRuntime(mDerivedEntity, null, null, null, null);
        }
Exemple #2
0
        public void Initialize()
        {
            OverallInitializer.Initialize();

            mEntitySave      = new EntitySave();
            mEntitySave.Name = "EntitySaveInNamedObjectSaveTests";
        }
        public void Initialize()
        {
            OverallInitializer.Initialize();

            CreateEntity();

            CreateElementRuntime();
        }
        public void Initialize()
        {
            OverallInitializer.Initialize();


            CreateElementRuntime();

            CreateDerivedElementRuntime();

            CreateContainerElementRuntime();

            CreateScreenSave();
        }
        public void Initialize()
        {
            // Couldn't run tests here because it requires FRB to be initialized.
            OverallInitializer.Initialize();

            mBaseEntity      = new EntitySave();
            mBaseEntity.Name = "ReferencedFileSaveTestsBaseEntity";

            ReferencedFileSave rfs = new ReferencedFileSave();


            ObjectFinder.Self.GlueProject.Entities.Add(mBaseEntity);

            mDerivedEntity            = new EntitySave();
            mDerivedEntity.Name       = "ReferencedFileSaveTestsDerivedEntity";
            mDerivedEntity.BaseEntity = mBaseEntity.Name;
            ObjectFinder.Self.GlueProject.Entities.Add(mDerivedEntity);
        }
 public void Initialize()
 {
     OverallInitializer.Initialize();
 }