private string monster_type_to_string(monster_type target_type) { switch (target_type) { case monster_type.Armored_Skeleton: return("ArmoredSkel"); case monster_type.Boneyard: return("Boneyard"); case monster_type.Ghost: return("Ghost"); case monster_type.Gore_Hound: return("GoreHound"); case monster_type.Gore_Wolf: return("GoreWolf"); case monster_type.Hollow_Knight: return("HollowKnight"); case monster_type.Red_Knight: return("RedKnight"); case monster_type.Necromancer: return("Necromancer"); case monster_type.Skeleton: return("Skeleton"); case monster_type.Void_Wraith: return("VoidWraith"); case monster_type.Zombie: return("Zombie"); case monster_type.Zombie_Fanatic: return("ZombieFanatic"); } return("NULL"); }
private string monster_type_to_string(monster_type target_type) { return target_type.ToString(); }
private void monster_brush_picture_Click(object sender, EventArgs e) { PictureBox pb = (PictureBox)sender; c_monster_name = pb.Tag.ToString(); current_brush_mode = brush_mode.Monsters; switch (c_monster_name) { case "Zombie": current_monster = monster_type.Zombie; current_monster_img = zombie_brush.Image; break; case "ZombieFanatic": current_monster = monster_type.Zombie_Fanatic; current_monster_img = zombie_fanatic_brush.Image; break; case "GoreHound": current_monster = monster_type.Gore_Hound; current_monster_img = gore_hound_brush.Image; break; case "GoreWolf": current_monster = monster_type.Gore_Wolf; current_monster_img = gore_wolf_brush.Image; break; case "Necromancer": current_monster = monster_type.Necromancer; current_monster_img = necro_brush.Image; break; case "Boneyard": current_monster = monster_type.Boneyard; current_monster_img = boneyard_brush.Image; break; case "ArmoredSkel": current_monster = monster_type.Armored_Skeleton; current_monster_img = arm_skel_brush.Image; break; case "Skel": current_monster = monster_type.Skeleton; current_monster_img = skel_brush.Image; break; case "VoidWraith": current_monster = monster_type.Void_Wraith; current_monster_img = void_wraith_brush.Image; break; case "Ghost": current_monster = monster_type.Ghost; current_doodad_img = ghost_brush.Image; break; case "RedKnight": current_monster = monster_type.Red_Knight; current_monster_img = red_knight_brush.Image; break; case "HollowKnight": current_monster = monster_type.Hollow_Knight; current_monster_img = hollow_knight_brush.Image; break; } }
private void monster_brush_picture_Click(object sender, EventArgs e) { PictureBox pb = (PictureBox)sender; c_monster_name = pb.Tag.ToString(); current_brush_mode = brush_mode.Monsters; current_monster_img = pb.Image; switch (c_monster_name) { case "Zombie": current_monster = monster_type.Zombie; break; case "ZombieFanatic": current_monster = monster_type.ZombieFanatic; break; case "GoreHound": current_monster = monster_type.GoreHound; break; case "GoreWolf": current_monster = monster_type.GoreWolf; break; case "Necromancer": current_monster = monster_type.Necromancer; break; case "Boneyard": current_monster = monster_type.Boneyard; break; case "ArmoredSkel": current_monster = monster_type.Armored_Skeleton; break; case "Skel": current_monster = monster_type.Skeleton; break; case "VoidWraith": current_monster = monster_type.VoidWraith; break; case "Ghost": current_monster = monster_type.Ghost; break; case "RedKnight": current_monster = monster_type.RedKnight; break; case "HollowKnight": current_monster = monster_type.HollowKnight; break; case "Schrodingers_HK": current_monster = monster_type.Schrodingers_HK; break; case "Gangrenous_Shambler": current_monster = monster_type.Gangrenous_Shambler; break; case "Rotting_Amalgam": current_monster = monster_type.Rotting_Amalgam; break; case "CorpseMimic": current_monster = monster_type.CorpseMimic; break; case "Lesser_Revenant": current_monster = monster_type.LesserRevenant; break; case "WereGoreHound": current_monster = monster_type.WereGoreHound; break; } }