Exemple #1
0
        static StackObject *get_Type_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            EB.Sparx.RedeemerItem instance_of_this_method = (EB.Sparx.RedeemerItem) typeof(EB.Sparx.RedeemerItem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Type;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Exemple #2
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Collections.Hashtable @data = (System.Collections.Hashtable) typeof(System.Collections.Hashtable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = new EB.Sparx.RedeemerItem(@data);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Exemple #3
0
        static StackObject *get_IsValid_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            EB.Sparx.RedeemerItem instance_of_this_method = (EB.Sparx.RedeemerItem) typeof(EB.Sparx.RedeemerItem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.IsValid;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
        public bool PayoutsContainRedeemer(EB.Sparx.RedeemerItem candidate)
        {
            foreach (IAP.Item item in _payouts)
            {
                if (item.ContainsRedeemer(candidate))
                {
                    return(true);
                }
            }

            foreach (RedeemerItem item in _bonusItems)
            {
                if (item.IsSameItem(candidate))
                {
                    return(true);
                }
            }

            return(false);
        }