Exemplo n.º 1
0
        public void InitItem(LSResult history)
        {
            var gdata = App.GetGameData <LswcGameData>();

            _animal.sprite = gdata.SetHistoryAnimal(history);
            _banker.sprite = gdata.SetHistoryBanker(history.Banker);
            _shanDianParent.SetActive(history.ResultType == LSRewardType.LIGHTING);
            SetMultiple(history.Multiple);
        }
Exemplo n.º 2
0
        // NOTE: intentionally inverting the status results (return bool, with an out
        // LSResult vs return LSResult with an out bool) to make the API nicer to use
        public static bool CanUrlAcceptUrl(NSUrl itemUrl, NSUrl targetUrl,
                                           LSRoles roles, LSAcceptanceFlags acceptanceFlags, out LSResult result)
        {
            if (itemUrl == null)
            {
                throw new ArgumentNullException(nameof(itemUrl));
            }
            if (targetUrl == null)
            {
                throw new ArgumentNullException(nameof(targetUrl));
            }

            byte acceptsItem;

            result = LSCanURLAcceptURL(itemUrl.Handle, targetUrl.Handle, roles, acceptanceFlags, out acceptsItem);
            return(acceptsItem != 0);
        }
Exemplo n.º 3
0
        // NOTE: intentionally inverting the status results (return bool, with an out
        // LSResult vs return LSResult with an out bool) to make the API nicer to use
        public static bool CanUrlAcceptUrl(NSUrl itemUrl, NSUrl targetUrl,
            LSRoles roles, LSAcceptanceFlags acceptanceFlags, out LSResult result)
        {
            if (itemUrl == null)
                throw new ArgumentNullException (nameof (itemUrl));
            if (targetUrl == null)
                throw new ArgumentNullException (nameof (targetUrl));

            byte acceptsItem;
            result = LSCanURLAcceptURL (itemUrl.Handle, targetUrl.Handle, roles, acceptanceFlags, out acceptsItem);
            return acceptsItem != 0;
        }