private void CreateBullet(params BulletProperties[] properties) { var id = BulletProperties.GetId(properties); var projectile = new ProjectileBuiltBullet(properties); AddProjectile("builtbullet-" + id, projectile); AddItem("itembuiltbullet-" + id, new ItemBuiltBullet(properties, projectile)); }
public ItemBuiltBullet(BulletProperties[] properties, ProjectileBuiltBullet projectile, string texName = "BuildABullet/Textures/bullet") { _properties = properties; _projectile = projectile; Texture = texName; }