예제 #1
0
        public PLProject()
        {
            Ressources = new ProjectRessources();
            Database = new GameDatabase();
            GameLink = new PixelLink();
            PixelMonkeyCore = String.Empty;

            Description = String.Empty;
        }
예제 #2
0
 public PLProject(SerializationInfo info, StreamingContext context)
 {
     Name = info.GetString("Name");
     DateCreated = (DateTime)info.GetValue("DateCreated", typeof(DateTime));
     Ressources = (ProjectRessources)info.GetValue("Ressources", typeof(ProjectRessources));
     Database = (GameDatabase)info.GetValue("Database", typeof(GameDatabase));
     GameLink = (PixelLink)info.GetValue("GameLink", typeof(PixelLink));
     PixelMonkeyCore = info.GetString("PixelMonkeyCore");
     Description = info.GetString("Description");
 }
예제 #3
0
        public DatabaseEditor(GameDatabase DB, ProjectRessources ress)
        {
            InitializeComponent();

            this.DB = DB;
            this.ressources = ress;

            foreach (ItemObject item in DB.ItemObjects)
                LIST_ItemObjects.Items.Add(item);

            foreach (Monster item in DB.Monsters)
                LIST_Monsters.Items.Add(item);

            foreach (SpecialAttack item in DB.SpecialAttacks)
                LIST_SpecialAttacks.Items.Add(item);

            foreach (StatusEffect item in Enum.GetValues(typeof(StatusEffect)))
                CHK_LIST_StatusEffectItem.Items.Add(item);

            foreach (TargetType item in Enum.GetValues(typeof(TargetType)))
                DDL_ITEM_Target.Items.Add(item);

            foreach (AttackType item in Enum.GetValues(typeof(AttackType)))
                DDL_ATK_Type.Items.Add(item);

            foreach (TargetType item in Enum.GetValues(typeof(TargetType)))
                DDL_Cible.Items.Add(item);

            foreach (Animation item in ress.Animations)
            {
                DDL_ATK_AnimationSelf.Items.Add(item);
                DDL_ATK_AnimationTarget.Items.Add(item);
            }

            ES_Faiblesses.Init(LIST_Elements, "");
            ES_Resistances.Init(LIST_Elements, "");
            ES_Immunites.Init(LIST_Elements, "");
            ES_MonstreFaiblesse.Init(LIST_Elements, "");
            ES_MonstrePrimaire.Init(LIST_Elements, "");
            ES_AttaqueSpeciale.Init(LIST_Elements, "");

            DDL_ITEM_Target.SelectedIndex = 0;
            DDL_ATK_Type.SelectedIndex = 0;
            DDL_Cible.SelectedIndex = 0;

            if (DDL_ATK_AnimationTarget.Items.Count > 0)
            {
                DDL_ATK_Type.SelectedIndex = 0;
                DDL_Cible.SelectedIndex = 0;
            }
        }
예제 #4
0
        private void DatabaseEditor_FormClosing(object sender, FormClosingEventArgs e)
        {
            DB = new GameDatabase();

            foreach (ItemObject item in LIST_ItemObjects.Items)
                DB.ItemObjects.Add(item);

            foreach (Monster item in LIST_Monsters.Items)
                DB.Monsters.Add(item);

            foreach (SpecialAttack item in LIST_SpecialAttacks.Items)
                DB.SpecialAttacks.Add(item);
        }