public DaggerfallGuildServiceTraining(IUserInterfaceManager uiManager, GuildNpcServices npcService, IGuild guild) : base(uiManager, uiManager.TopWindow) { NpcService = npcService; Guild = guild; playerEntity = GameManager.Instance.PlayerEntity; TrainingService(); }
//protected new StaticNPC merchantNPC; //protected new PlayerGPS.DiscoveredBuilding buildingData; //protected new RoomRental_v1 rentedRoom; //protected new int daysToRent = 0; //protected new int tradePrice = 0; //bool isCloseWindowDeferred = false; //bool isTalkWindowDeferred = false; //bool isFoodDeferred = false; //bool isDrinksDeferred = false; #endregion #region Constructors public FenceWindow(IUserInterfaceManager uiManager, StaticNPC npc, FactionFile.GuildGroups guildGroup) : base(uiManager) { ParentPanel.BackgroundColor = Color.clear; guildManager = GameManager.Instance.GuildManager; serviceNPC = npc; npcService = GuildNpcServices.TG_SellMagicItems; this.guildGroup = guildGroup; guild = guildManager.GetGuild(guildGroup, buildingFactionId); Debug.Log("guild = " + guild.ToString()); }
public FlynsarmyGuildServicePopupWindow(IUserInterfaceManager uiManager, StaticNPC npc, FactionFile.GuildGroups guildGroup, int buildingFactionId) : base(uiManager, npc, guildGroup, buildingFactionId) { playerEntity = GameManager.Instance.PlayerEntity; guildManager = GameManager.Instance.GuildManager; serviceNPC = npc; npcService = (GuildNpcServices)npc.Data.factionID; currentService = Services.GetService(npcService); Debug.Log("NPC offers guild service: " + currentService.ToString()); this.guildGroup = guildGroup; this.buildingFactionId = buildingFactionId; guild = guildManager.GetGuild(guildGroup, buildingFactionId); }
public DaggerfallGuildServicePopupWindow(IUserInterfaceManager uiManager, StaticNPC npc, FactionFile.GuildGroups guildGroup, int buildingFactionId) : base(uiManager) { playerEntity = GameManager.Instance.PlayerEntity; guildManager = GameManager.Instance.GuildManager; serviceNPC = npc; npcService = (GuildNpcServices)npc.Data.factionID; service = Services.GetService(npcService); Debug.Log("NPC offers guild service: " + service.ToString()); this.guildGroup = guildGroup; this.buildingFactionId = buildingFactionId; guild = guildManager.GetGuild(guildGroup, buildingFactionId); // Clear background ParentPanel.BackgroundColor = Color.clear; }
public static GuildServices GetService(GuildNpcServices guildNpcService) { switch (guildNpcService) { case GuildNpcServices.MG_Training: case GuildNpcServices.FG_Training: case GuildNpcServices.TG_Training: case GuildNpcServices.DB_Training: case GuildNpcServices.TAk_Training: case GuildNpcServices.TAr_Training: case GuildNpcServices.TDi_Training: case GuildNpcServices.TJu_Training: case GuildNpcServices.TKy_Training: case GuildNpcServices.TMa_Training: case GuildNpcServices.TSt_Training: case GuildNpcServices.TZe_Training: return(GuildServices.Training); case GuildNpcServices.FG_Quests: case GuildNpcServices.MG_Quests: case GuildNpcServices.TG_Quests: case GuildNpcServices.DB_Quests: case GuildNpcServices.T_Quests: case GuildNpcServices.KO_Quests: return(GuildServices.Quests); case GuildNpcServices.FG_Repair: return(GuildServices.Repair); case GuildNpcServices.MG_Identify: return(GuildServices.Identify); case GuildNpcServices.T_MakeDonation: return(GuildServices.Donate); case GuildNpcServices.T_CureDiseases: return(GuildServices.CureDisease); case GuildNpcServices.DB_BuyPotions: case GuildNpcServices.TAk_BuyPotions: case GuildNpcServices.TAr_BuyPotions: case GuildNpcServices.TDi_BuyPotions: case GuildNpcServices.TMa_BuyPotions: case GuildNpcServices.TSt_BuyPotions: case GuildNpcServices.TZe_BuyPotions: return(GuildServices.BuyPotions); case GuildNpcServices.DB_MakePotions: case GuildNpcServices.TAk_MakePotions: case GuildNpcServices.TAr_MakePotions: case GuildNpcServices.TDi_MakePotions: case GuildNpcServices.TMa_MakePotions: case GuildNpcServices.TSt_MakePotions: case GuildNpcServices.TZe_MakePotions: return(GuildServices.MakePotions); case GuildNpcServices.MG_BuySpells: return(GuildServices.BuySpellsMages); case GuildNpcServices.TKy_BuySpells: return(GuildServices.BuySpells); case GuildNpcServices.MG_MakeSpells: case GuildNpcServices.TKy_MakeSpells: return(GuildServices.MakeSpells); case GuildNpcServices.MG_BuyMagicItems: case GuildNpcServices.TJu_BuyMagicItems: return(GuildServices.BuyMagicItems); case GuildNpcServices.MG_MakeMagicItems: case GuildNpcServices.TJu_MakeMagicItems: return(GuildServices.MakeMagicItems); case GuildNpcServices.TG_SellMagicItems: return(GuildServices.SellMagicItems); case GuildNpcServices.MG_Teleportation: return(GuildServices.Teleport); case GuildNpcServices.MG_DaedraSummoning: case GuildNpcServices.TAk_DaedraSummoning: case GuildNpcServices.TAr_DaedraSummoning: case GuildNpcServices.TDi_DaedraSummoning: case GuildNpcServices.TJu_DaedraSummoning: case GuildNpcServices.TKy_DaedraSummoning: case GuildNpcServices.TMa_DaedraSummoning: case GuildNpcServices.TSt_DaedraSummoning: case GuildNpcServices.TZe_DaedraSummoning: return(GuildServices.DaedraSummoning); case GuildNpcServices.TG_Spymaster: case GuildNpcServices.DB_Spymaster: return(GuildServices.Spymaster); case GuildNpcServices.DB_BuySoulgems: case GuildNpcServices.TAr_BuySoulgems: return(GuildServices.BuySoulgems); case GuildNpcServices.KO_Smith: return(GuildServices.ReceiveArmor); case GuildNpcServices.KO_Seneschal: return(GuildServices.ReceiveHouse); } GuildServices service; if (guildNpcServices.TryGetValue((int)guildNpcService, out service)) { return(service); } else { return((GuildServices)guildNpcService); } }
public GuildServiceTrainingRR(IUserInterfaceManager uiManager, GuildNpcServices npcService, IGuild guild) : base(uiManager, npcService, guild) { }