-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for minimal-extended modular gamemode
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using MinimalExtended; | ||
using Sandbox; | ||
|
||
namespace Wirebox | ||
{ | ||
[Library("wirebox")] | ||
public class AddonInfo : IAddonInfo | ||
{ | ||
public string Name => "WireBox"; | ||
|
||
public string Description => "Wiremod for S&Box"; | ||
|
||
public string Author => "Wireteam"; | ||
|
||
public double Version => 0.1; | ||
|
||
public List<AddonDependency> Dependencies => new() | ||
{ | ||
new AddonDependency() | ||
{ | ||
Name = "Sandbox", | ||
MinVersion = 1.0 | ||
} | ||
}; | ||
|
||
// No main class as it should be instantiated by the Entities/Tools (so far) | ||
public Type MainClass => null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Wiremod for S&box | ||
|
||
## Current status | ||
|
||
Very early WIP (as is S&box itself). There's basic wiring of thrusters/lights to buttons. | ||
Players/Testers: there's nothing to do yet | ||
|
||
## Setup | ||
|
||
S&box is currently focused around 'Gamemodes', not modular addons, | ||
however [[A]lex is working on a modular Gamemode framework](https://github.com/Ceveos/minimal-extended) which might work for us. There's thus two install approaches: | ||
|
||
### Using minimal-extended modular gamemode framework | ||
``` | ||
cd steamapps/common/sbox/addons | ||
git clone https://github.com/Ceveos/minimal-extended.git | ||
cd minimal-extended/code/addons | ||
git clone https://github.com/wiremod/wirebox.git | ||
cd wirebox | ||
./unpack-assets.bat | ||
``` | ||
|
||
Alternatively, use the latest Github Release as a base | ||
|
||
### Copying overtop of the base [sandbox gamemode](https://github.com/facepunch/sandbox) | ||
|
||
1. Load in-game or `git clone https://github.com/facepunch/sandbox.git` to `sbox/addons/` | ||
2. Copy this repo on-top |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xcopy /E models\wirebox\ ..\..\..\models\wirebox\ |