Ejemplo n.º 1
0
		public override LinkedEntity<MonsterTestBase> EditorDuplicate(LinkedEntity<MonsterTestBase> DerivedDuplicateInto = null)
		{
			MonsterTestState DuplicateInto = (MonsterTestState)DerivedDuplicateInto;
			
			if(DuplicateInto == null)
			{
				DuplicateInto = new MonsterTestState();
			}
			
			return base.EditorDuplicate(DuplicateInto);
		}
Ejemplo n.º 2
0
        public override LinkedEntity <MonsterTestBase> EditorDuplicate(LinkedEntity <MonsterTestBase> DerivedDuplicateInto = null)
        {
            MonsterTestState DuplicateInto = (MonsterTestState)DerivedDuplicateInto;

            if (DuplicateInto == null)
            {
                DuplicateInto = new MonsterTestState();
            }

            return(base.EditorDuplicate(DuplicateInto));
        }
Ejemplo n.º 3
0
        public virtual MonsterTestBaseBox SetupNewBox(string EntityTypeName, MonsterTestState NewEntity)
        {
            MonsterTestManager.AddTestState(NewEntity);

            MonsterTestBaseBox NewBox = (MonsterTestBaseBox)TypeUtils.GetEditorBoxForTypeString(EntityTypeName, MonsterTestWindow.WindowInstance, NewEntity);

            NewBox.InitializeNewBox();

            NewBox.MoveBoxTo(InputState.GetLocalMousePosition(this, -GetWindowOffset()));

            MonsterTestWindow.WindowInstance.AddBox(NewBox);

            return(NewBox);
        }
Ejemplo n.º 4
0
        public virtual List <string> GetAllDerivedTestStateTypes()
        {
            List <Type>   DerivedTypes = IgorRuntimeUtils.GetTypesInheritFrom <MonsterTestState>();
            List <string> TypeNames    = new List <string>();

            foreach (Type CurrentType in DerivedTypes)
            {
                MonsterTestState StateInst = (MonsterTestState)Activator.CreateInstance(CurrentType);

                TypeNames.Add(StateInst.GetEntityName());
            }

            return(TypeNames);
        }
Ejemplo n.º 5
0
        public virtual void ConnectEntity(string EntityTypeName)
        {
            MonsterTestState NewState = (MonsterTestState)TypeUtils.GetNewObjectOfTypeString(EntityTypeName);

            NewState.CreateStaticNodesIfNotPresent();

            MonsterTestBaseBox NewBox = SetupNewBox(EntityTypeName, NewState);

            if (NewBox.GetAllAnchors().Count > 0)
            {
                Anchor <MonsterTestBase> NewBoxAnchor = NewBox.GetAllAnchors()[0];

                ConnectInputToOutput(NewBoxAnchor, StartingAnchorForNewBox);
            }
        }
Ejemplo n.º 6
0
        public virtual void AddEntity(string EntityTypeName)
        {
            MonsterTestState NewState = (MonsterTestState)TypeUtils.GetNewObjectOfTypeString(EntityTypeName);

            SetupNewBox(EntityTypeName, NewState);
        }