public void UsingAllEnumArguments(MyLongEnum arg1, MyIntEnum arg2, MyShortEnum arg3,
                                   MyByteEnum arg4, MySByteEnum arg5, MyUShortEnum arg6, MyUIntEnum arg7, MyULongEnum arg8)
 {
     if (IsEnabled())
     {
         WriteEvent(307, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
     }
 }
Ejemplo n.º 2
0
        public void ByteIsSentForByteEnum()
        {
            MyByteEnum byteEnum = MyByteEnum.B;

            var writer = new NetworkWriter();

            writer.Write(byteEnum);

            // should only be 1 byte
            Assert.That(writer.Length, Is.EqualTo(1));
        }
 public void RpcSomeFunction([BitCountFromRange(0, 3)] MyByteEnum myParam)
 {
     onRpc?.Invoke(myParam);
 }
Ejemplo n.º 4
0
 public void RpcSomeFunction([BitCount(4)] MyByteEnum myParam)
 {
     onRpc?.Invoke(myParam);
 }
 public void UsingAllEnumArguments(MyLongEnum arg1, MyIntEnum arg2, MyShortEnum arg3,
     MyByteEnum arg4, MySByteEnum arg5, MyUShortEnum arg6, MyUIntEnum arg7, MyULongEnum arg8)
 {
     if (IsEnabled()) { WriteEvent(307, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); }
 }
Ejemplo n.º 6
0
			public MyClassWithEnumMembers(int value)
			{
				_myByteEnum = (MyByteEnum) value;
				_mySByteEnum = (MySByteEnum) value;
				_myShortEnum = (MyShortEnum) value;
				_myUShortEnum = (MyUShortEnum) value;
				_myIntEnum = (MyIntEnum) value;
				_myUIntEnum = (MyUIntEnum) value;
				_myLongEnum = (MyLongEnum) value;
				_myULongEnum = (MyULongEnum) value;
			}