コード例 #1
0
        public void NextSlot(int direction)
        {
            ISlotConnection connection = currentSlotGroup.CurrentSlot.GetConnectionAt(direction);

            if (connection != null)
            {
                if (connection is Slot)
                {
                    Slot slot = connection as Slot;
                    slot.Select();
                    if (slot.Disabled)
                    {
                        NextSlot(direction);
                        return;
                    }
                    AudioSystem.PlaySound(GameData.SOUND_MENU_CURSOR_MOVE);
                }
                else if (connection is SlotGroup)
                {
                    currentSlotGroup = (connection as SlotGroup);
                    AudioSystem.PlaySound(GameData.SOUND_MENU_CURSOR_MOVE);
                }
            }
        }
コード例 #2
0
ファイル: Slot.cs プロジェクト: trigger-death/ZeldaOracle
 // Sets all 4 slot connections.
 public void SetConnection(ISlotConnection[] connections)
 {
     this.connections = connections;
 }
コード例 #3
0
ファイル: Slot.cs プロジェクト: trigger-death/ZeldaOracle
 //-----------------------------------------------------------------------------
 // Connections
 //-----------------------------------------------------------------------------
 // Sets a single slot connections.
 public void SetConnection(int direction, ISlotConnection connection)
 {
     connections[direction] = connection;
 }
コード例 #4
0
ファイル: Slot.cs プロジェクト: radtek/ZeldaOracle
        //-----------------------------------------------------------------------------
        // Connections
        //-----------------------------------------------------------------------------

        // Sets a single slot connections.
        public void SetConnection(int direction, ISlotConnection connection)
        {
            connections[direction] = connection;
        }