Initialize() public static method

public static Initialize ( ) : void
return void
Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void Initialize()
        {
            OverallInitializer.Initialize();

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

            CreateEntity();

            CreateElementRuntime();
        }
Esempio n. 4
0
        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);
        }
Esempio n. 6
0
 public void Initialize()
 {
     OverallInitializer.Initialize();
 }