public DebugTileDialog(Tile[] tiles, ProjectRessources ress) { InitializeComponent(); this.tiles = tiles; ressources = ress; SetInfos(tiles[0]); }
public PLProject() { Ressources = new ProjectRessources(); Database = new GameDatabase(); GameLink = new PixelLink(); PixelMonkeyCore = String.Empty; Description = String.Empty; }
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"); }
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; } }