Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.Prrovoss
- {
- public class Test: BasePlugin, IInGameWorldPainter
- {
- public Test()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- }
- public void PaintWorld(WorldLayer layer)
- {
- Jack.Says.Debug("IsStoryMode1: "+IsStoryMode1());
- Jack.Says.Debug("IsStoryMode2: "+IsStoryMode2());
- Jack.Says.Debug("-----");
- }
- private bool IsStoryMode1()
- {
- foreach (IQuest quest in Hud.Game.Quests)
- {
- if (quest.SnoQuest.Type == QuestType.MainQuest) return true;
- }
- return false;
- }
- private bool IsStoryMode2()
- {
- foreach (IQuest quest in Hud.Game.Quests)
- {
- if (quest.SnoQuest.Type != QuestType.MainQuest) return false;
- }
- return true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement