Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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;
 }