Initial Commit

This commit is contained in:
Simeon Radivoev 2022-02-12 12:53:50 +02:00
commit ee5c2f922d
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
2255 changed files with 547750 additions and 0 deletions

View file

@ -0,0 +1,35 @@
using System;
using UnityEngine;
namespace DefaultNamespace
{
[Serializable]
public struct bool1
{
[SerializeField] private byte _value;
public bool1(bool value)
{
_value = (byte)(value ? 1 : 0);
}
public static implicit operator bool1(bool value)
{
return new bool1(value);
}
public static implicit operator bool(bool1 value)
{
return value._value != 0;
}
public override string ToString()
{
if (_value == 0)
{
return "false";
}
return "true";
}
}
}