예제 #1
0
 private void _redo()
 {
     CurrentData             = HotkeySystem.NewNote(mPrefabPath).GetComponent <NoteData>();
     CurrentData.Position    = mNoteData.Position;
     CurrentData.Time        = mNoteData.Time;
     CurrentData.Width       = mNoteData.Width;
     CurrentData.Direction   = mNoteData.Dir;
     CurrentData.InnerID     = mNoteData.ID;
     CurrentData.NotifyWidth = true;
 }
예제 #2
0
 void Update()
 {
     Instance = this;
     if (!IsWorking)
     {
         return;
     }
     if ((Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)) &&
         (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightAlt)))
     {
         KeysWithControlAlt();
     }
     else
     {
         KeysBared();
     }
 }
예제 #3
0
    public D20System()
    {
        Conditions = new ConditionRegistry();
        Conditions.Register(GlobalCondition.Conditions);
        foreach (var conditionSpec in GlobalCondition.Conditions)
        {
            Conditions.AttachGlobally(conditionSpec);
        }

        Conditions.Register(ContentDiscovery.Conditions);

        foreach (var(featId, condition) in ContentDiscovery.FeatConditions)
        {
            FeatConditionMapping.Mapping[featId] = new FeatConditionMapping.FeatCondition(condition);
        }

        Logger.Info("Registered {0} conditions.", Conditions.Count);

        Conditions.WarnAboutPendingExtensions();

        BonusSystem = new BonusSystem();
        Status      = new D20StatusSystem();
        // TODO

        ObjectRegistry = new D20ObjectRegistry();
        Actions        = new D20ActionSystem();
        Initiative     = new D20Initiative();

        RadialMenu = new RadialMenuSystem();
        Hotkeys    = new HotkeySystem();

        BuffDebuff = new D20BuffDebuffSystem();
        Damage     = new D20DamageSystem();
        Combat     = new D20CombatSystem();
        Experience = new D20ExperienceSystem();
    }