コード例 #1
0
        private IEnumerator dequipeHeldObjectResult()
        {
            yield return(null);

            if (currentConsumable != null)
            {
                int num = currentConsumable.PartialCount();
                if (num > 0)
                {
                    processEvent(GameServerEvent.COMSUMBLE_PARTIAL_COUNT_SET, new SignedResponse <UsedConsumable>
                    {
                        Data = new UsedConsumable
                        {
                            partialCount = num,
                            type         = currentConsumable.Type()
                        }
                    });
                }
                currentConsumable = null;
            }
            processEvent(GameServerEvent.HELD_OBJECT_DEQUIPPED, clubPenguinClient.PlayerSessionId);
        }