Skip to content

Commit

Permalink
Add support for minimal-extended modular gamemode
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebual committed Jun 7, 2021
1 parent b390e0b commit 4ff20e8
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
31 changes: 31 additions & 0 deletions AddonInfo.cs
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;
}
}
28 changes: 28 additions & 0 deletions README.md
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
1 change: 1 addition & 0 deletions unpack-assets.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xcopy /E models\wirebox\ ..\..\..\models\wirebox\

0 comments on commit 4ff20e8

Please sign in to comment.