자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public static void ReadWeaponData(ContentManager Content) { string[] filenames = Directory.GetFiles(@"Content\Game\Items\Weapon", "*.xnb"); foreach (string name in filenames) { string filename = @"Game\Items\Weapon\" + Path.GetFileNameWithoutExtension(name); WeaponData data = Content.Load <WeaponData>(filename); WeaponData.Add(data.Name, data); } }