mirror of
				https://github.com/MaddyThorson/StrawberryBF.git
				synced 2025-11-04 01:41:33 +08:00 
			
		
		
		
	Facings operators
This commit is contained in:
		@ -1,3 +1,4 @@
 | 
			
		||||
using System;
 | 
			
		||||
namespace Strawberry
 | 
			
		||||
{
 | 
			
		||||
	public enum Facings
 | 
			
		||||
@ -21,6 +22,18 @@ namespace Strawberry
 | 
			
		||||
				return i;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		[Inline, Commutable]
 | 
			
		||||
		static public int operator*(Facings a, int b)
 | 
			
		||||
		{
 | 
			
		||||
			return b * (int)a;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		[Inline, Commutable]
 | 
			
		||||
		static public float operator*(Facings a, float b)
 | 
			
		||||
		{
 | 
			
		||||
			return b * (int)a;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		static public implicit operator Facings(int i)
 | 
			
		||||
		{
 | 
			
		||||
			if (i < 0)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user