File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
using Hacknet ;
2
+ using Microsoft . Xna . Framework . Audio ;
2
3
using System ;
3
4
using System . Collections . Generic ;
4
5
using System . Linq ;
5
6
using System . Text ;
7
+ using XNA = Microsoft . Xna . Framework ;
6
8
7
9
namespace TemplateMod
8
10
{
@@ -459,7 +461,7 @@ public static bool RemoveProxy(Hacknet.OS os, string[] args)
459
461
Computer computer = os.connectedComp;
460
462
computer.
461
463
return false;
462
- } */
464
+ }
463
465
public static bool AddComputer(Hacknet.OS os, string[] args)
464
466
{
465
467
@@ -468,6 +470,12 @@ public static bool AddComputer(Hacknet.OS os, string[] args)
468
470
469
471
Computer computer = new Computer()
470
472
return false;
473
+ } */
474
+ public static bool PlaySFX ( Hacknet . OS os , string [ ] args )
475
+ {
476
+ SoundEffect sound = os . content . Load < SoundEffect > ( args [ 1 ] ) ;
477
+ sound . Play ( ) ;
478
+ return false ;
471
479
}
472
480
}
473
481
}
You can’t perform that action at this time.
0 commit comments