private Library.Weapon library_AddWeapon(string name, string type) { // Check what type of weapon it is if (type == "projectile") { // Create weapon and return it var wep = new Library.ProjectileWeapon(); Root.Singleton.mgrState.Get <Library>().AddWeapon(name, wep); return(wep); } return(null); }
private Library.Weapon library_AddWeapon(string name, string type) { // Check what type of weapon it is if (type == "projectile") { // Create weapon and return it var wep = new Library.ProjectileWeapon(); Root.Singleton.mgrState.Get<Library>().AddWeapon(name, wep); return wep; } return null; }