//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 loyalsoft. All rights reserved. // Homepage: http://www.game7000.com/ // Feedback: http://www.game7000.com/ //------------------------------------------------------------ using GameFramework; namespace UnityGameFramework.Runtime { /// /// System.UInt32 变量类。 /// public sealed class VarUInt32 : Variable { /// /// 初始化 System.UInt32 变量类的新实例。 /// public VarUInt32() { } /// /// 从 System.UInt32 到 System.UInt32 变量类的隐式转换。 /// /// 值。 public static implicit operator VarUInt32(uint value) { VarUInt32 varValue = ReferencePool.Acquire(); varValue.Value = value; return varValue; } /// /// 从 System.UInt32 变量类到 System.UInt32 的隐式转换。 /// /// 值。 public static implicit operator uint(VarUInt32 value) { return value.Value; } } }