예제 #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);
 }
예제 #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;
 }