コード例 #1
0
ファイル: LegacySystem.cs プロジェクト: SuperPaw/Goblin-Game
    private void RaceDeath(Character.Race r)
    {
        switch (r)
        {
        case Character.Race.Goblin:
            OnConditionEvent.Invoke(UnlockCondition.GoblinDeath);
            break;

        case Character.Race.Human:
            OnConditionEvent.Invoke(UnlockCondition.KillHuman);
            break;

        case Character.Race.Spider:
            OnConditionEvent.Invoke(UnlockCondition.KillSpider);
            break;

        case Character.Race.Zombie:
            OnConditionEvent.Invoke(UnlockCondition.KillZombie);
            break;

        case Character.Race.Ogre:
            OnConditionEvent.Invoke(UnlockCondition.KillGiant);
            break;

        case Character.Race.Wolf:
            OnConditionEvent.Invoke(UnlockCondition.KillWolf);
            break;

        case Character.Race.NoRace:
            break;

        default:
            throw new ArgumentOutOfRangeException(nameof(r), r, null);
        }
    }
コード例 #2
0
 public static Shout GetEnemyReaction(Character.Race Type)
 {
     return(Instance.GetRandom(Instance.EnemyReactions.First(l => l.Race == Type).GoblinShouts));
 }
コード例 #3
0
ファイル: DummyEveRepository.cs プロジェクト: jhtodd/Eve
 bool IEveRepository.TryGetRaceById(Character.RaceId id, out Character.Race value)
 {
     throw new NotImplementedException();
 }