Пример #1
0
    /// <summary>
    /// Player has pressed "Room" so we will want to add that as the pending action as well as possibly clear up other pending actions
    /// </summary>
    /// <returns>TRUE if the button action is successful, FALSE if there's any obstacle/failure</returns>
    protected bool ButtonRoomAction()
    {
        //There's another pending action, so we should probably clean it up first
        if (m_currentPendingCreationAction != CreationAction.None)
        {
            CleanUpPendingAction();
        }

        CameraManager.Singleton.selectionMode = CameraManager.CameraSelectionMode.Tiles;

        m_currentPendingCreationAction = CreationAction.Room;
        return(true);
    }
Пример #2
0
 public void AddCreationBinding(List<Key> keys, CreationAction action)
 {
     CreationBindings.Add(new CreationBinding(keys, action));
 }
Пример #3
0
 public CreationBinding(List<Key> keys, CreationAction action)
 {
     KeyCombo = keys;
     Action = action;
 }
Пример #4
0
 public void AddCreationBinding(List <Key> keys, CreationAction action)
 {
     CreationBindings.Add(new CreationBinding(keys, action));
 }
Пример #5
0
 public CreationBinding(List <Key> keys, CreationAction action)
 {
     KeyCombo = keys;
     Action   = action;
 }