mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Custom Xenotypes should work now with Hivelogic
This commit is contained in:
parent
57bb1950e4
commit
0aefb45d9b
7 changed files with 171 additions and 42 deletions
28
Source/Common/Either.cs
Normal file
28
Source/Common/Either.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Either<TL, TR>
|
||||
{
|
||||
public readonly TL left;
|
||||
public readonly TR right;
|
||||
public readonly bool isLeft;
|
||||
|
||||
public Either(TL left)
|
||||
{
|
||||
this.left = left;
|
||||
this.isLeft = true;
|
||||
}
|
||||
|
||||
public Either(TR right)
|
||||
{
|
||||
this.right = right;
|
||||
this.isLeft = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue