Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 9.93 KB | None | 0 0
  1.  
  2.     #region Player
  3.     //Gold
  4.     public static ReturnEvent<int, bool> OnRequestCanPurchase = new ReturnEvent<int, bool>();
  5.     public static ReturnEvent<int, bool> OnRequestSpendGold = new ReturnEvent<int, bool>();
  6.     public static ReturnEvent<int> OnRequestGoldAmount = new ReturnEvent<int>();
  7.     public static Event<int> OnGoldUpdated = new Event<int>();
  8.     public static Event<int> OnGoldAdded = new Event<int>();
  9.     public static Event<int> OnGoldSet = new Event<int>();
  10.     //Level
  11.     public static ReturnEvent<(CraftSkill, int), bool> OnRequestHasLevelRequirement = new ReturnEvent<(CraftSkill, int), bool>();
  12.     public static ReturnEvent<CraftSkill, int> OnRequestSkillLevel = new ReturnEvent<CraftSkill, int>();
  13.     #endregion
  14.  
  15.     #region Actions
  16.     //Action control
  17.     public static Event<PlayerSkillActionUI> OnStartSkillAction = new Event<PlayerSkillActionUI>();
  18.     public static Event<string, float> OnUpdateActionProgress = new Event<string, float>();
  19.     public static ReturnEvent<string, float> OnRequestActionProgress = new ReturnEvent<string, float>();
  20.     //Action Count
  21.     public static Event<int> OnConfirmSkillAction = new Event<int>();
  22.     public static Event<ItemType, bool> OnMaxActionsUpdate = new Event<ItemType, bool>();
  23.     public static ReturnEvent<ItemType, bool> OnRequestMaxActionsHit = new ReturnEvent<ItemType, bool>();
  24.     //Update skill level and exp
  25.     public static Event<CraftSkill, int> OnUpdateSkillLevel = new Event<CraftSkill, int>();
  26.     public static Event<CraftSkill, int, int> OnUpdateSkillExp = new Event<CraftSkill, int, int>();
  27.     public static Event<CraftSkill, int> OnGainActionSkillExp = new Event<CraftSkill, int>();
  28.     //Complete actions
  29.     public static Event<InventoryItem> OnActionComplete = new Event<InventoryItem>();
  30.     public static Event<CraftableItem> OnCraftedItem = new Event<CraftableItem>();
  31.     //Cost checks
  32.     public static ReturnEvent<string, bool> OnRequestCanAffordItem = new ReturnEvent<string, bool>();
  33.     #endregion
  34.  
  35.     #region Upgrades
  36.     public static ReturnEvent<string, int> OnRequestUpgradeLevel = new ReturnEvent<string, int>();
  37.     public static Event<string, string> OnUpgradePurchased = new Event<string, string>();
  38.     public static Event<SavedUpgrades> OnSetupUpgrades = new Event<SavedUpgrades>();
  39.     public static Event<string, string> OnRequestPurchaseUpgrade = new Event<string, string>();
  40.     //Update UI
  41.     public static Event OnUpdateUpgradeUI = new Event();
  42.     #endregion
  43.  
  44.     #region Items
  45.     //Add Inventory Items
  46.     public static Event<InventoryItem> AddInventoryItem = new Event<InventoryItem>();
  47.     public static Event<InventoryItem> AddInventoryUIItem = new Event<InventoryItem>();
  48.     public static Event<CraftableItem> AddCraftableItemCost = new Event<CraftableItem>();
  49.     //Remove Inventory Items
  50.     public static Event<int, int> RemoveInventoryItem = new Event<int, int>();
  51.     public static Event<CraftableItem> RemoveCraftableItemCost = new Event<CraftableItem>();
  52.     //Update Inventory Items
  53.     public static Event<int> UpdateItem = new Event<int>();
  54.     public static Event InventoryItemsUpdated = new Event();
  55.     public static Event<int, InventoryItem> SwapInventoryItem = new Event<int, InventoryItem>();
  56.     public static ReturnEvent<int, InventoryItem> RequestInventoryItem = new ReturnEvent<int, InventoryItem>();
  57.     //Sell Inventory Item
  58.     public static Event<int, int> SellInventoryItem = new Event<int, int>(); //Slot Index, Quantity(-1 for all)
  59.     //General Items
  60.     public static ReturnEvent<CraftSkill, List<Item>> RequestAllSkillActionItems = new ReturnEvent<CraftSkill, List<Item>>();
  61.     public static Event ItemsLoaded = new Event();
  62.     //Toolbelt
  63.     public static Event<CraftSkill, int> UpdateToolbeltSlots = new Event<CraftSkill, int>();
  64.     public static ReturnEvent<CraftSkill, int> RequestToolbeltSlots = new ReturnEvent<CraftSkill, int>();
  65.     public static Event<CraftSkill, int, int> EquipToolbeltItem = new Event<CraftSkill, int, int>();
  66.     public static Event<int> EquippedToolbeltItem = new Event<int>();
  67.     public static Event<CraftSkill> AddNewToolbeltSlot = new Event<CraftSkill>();
  68.     #endregion
  69.  
  70.     #region Inventory
  71.     //Inventory Slots
  72.     public static Event<int> OnUpdateCurrentInventoryStorage = new Event<int>();
  73.     public static Event<int> OnUpdateMaxInventoryStorage = new Event<int>();
  74.     public static Event<bool> OnUpdateIfInventoryIsFull = new Event<bool>();
  75.     public static Event OnRequestInventoryFullUpdate = new Event();
  76.     public static Event OnRequestInventorySort = new Event();
  77.     public static ReturnEvent<string, bool> OnRequestHasAvailableSlots = new ReturnEvent<string, bool>();
  78.     //Temp slots
  79.     public static ReturnEvent<(int, string), int> OnAddTemporaryInventoryCount = new ReturnEvent<(int, string), int>();
  80.     public static Event<int> OnRemoveTemporaryInventoryCount = new Event<int>();
  81.     public static ReturnEvent<bool> OnRequestInventoryFull = new ReturnEvent<bool>();
  82.     #endregion
  83.  
  84.     #region Prestige
  85.    
  86.     public static Event<int> OnSetNewCompanionSlot = new Event<int>();
  87.     public static Event OnConfirmPrestige = new Event();
  88.     public static Event OnSkillLoaded = new Event();
  89.     public static Event OnSkillsLoaded = new Event();
  90.  
  91.     #endregion
  92.  
  93.     #region Companions
  94.  
  95.     public static Event<SavedCompanions> OnSetupCompanions = new Event<SavedCompanions>();
  96.     public static Event OnAddCompanionSlot = new Event();
  97.     public static Event<int, Companion> OnUpdateCompanionSlot = new Event<int, Companion>();
  98.     public static Event<int, Companion> OnAddNewCompanion = new Event<int, Companion>();
  99.  
  100.     public static ReturnEvent<int, Companion> OnRequestCompanion = new ReturnEvent<int, Companion>();
  101.     public static Event<int> OnDisplayCompanionActionSelection = new Event<int>();
  102.     public static Event<CraftSkill> OnDisplayCompanionActions = new Event<CraftSkill>();
  103.     public static Event<int, Item> OnSetCompanionAction = new Event<int, Item>();
  104.  
  105.     public static Event<Companion[]> OnSetupCompanionUI = new Event<Companion[]>();
  106.     public static Event<int, Companion> OnSetupCompanionUISlot = new Event<int, Companion>();
  107.  
  108.     #endregion
  109.  
  110.     #region Achievements
  111.  
  112.     public static ReturnEvent<(List<Achievement>, List<Achievement>)> OnRequestAvailableAchievements = new ReturnEvent<(List<Achievement>, List<Achievement>)>();
  113.     public static Event OnUpdateAvailableAchievements = new Event();
  114.     public static Event OnSetupAvailableAchievements = new Event();
  115.     public static Event OnRequestAchievementSort = new Event();
  116.     public static Event OnAchievementSelectionCountUpdated = new Event();
  117.     public static Event<string> OnAchievementSelected = new Event<string>();
  118.     public static ReturnEvent<bool> OnCheckAllAchievementsSelected = new ReturnEvent<bool>();
  119.     public static Event<string[]> OnUpdateSelectedAchievements = new Event<string[]>();
  120.     public static Event<string, bool, bool> OnToggleAchievementDisplayCategory = new Event<string, bool, bool>();
  121.     public static Event<string, bool, bool> OnAchievementDisplayCategoryToggled = new Event<string, bool, bool>();
  122.  
  123.     #endregion
  124.  
  125.     #region Effects
  126.  
  127.     public static Event<List<ItemStat>> OnAddItemStatEffect = new Event<List<ItemStat>>();
  128.     public static Event<AchievementEffect> OnAddPrestigeEffect = new Event<AchievementEffect>();
  129.     public static Event<List<ItemStat>> OnRemoveEffects = new Event<List<ItemStat>>();
  130.     public static ReturnEvent<(CraftSkill, EffectType), float> OnRequestSkillEffect = new ReturnEvent<(CraftSkill, EffectType), float>();
  131.     //public static ReturnEvent<EffectType, float> OnRequestEffect = new ReturnEvent<EffectType, float>();
  132.     public static ReturnEvent<string, float> OnRequestEffect = new ReturnEvent<string, float>();
  133.  
  134.     public static Event<string, float> OnEffectUpdated = new Event<string, float>();
  135.  
  136.     #endregion
  137.  
  138.     #region Tooltip
  139.     //Tool tooltip
  140.     public static Event<CraftSkill, int> OnShowToolTooltip = new Event<CraftSkill, int>();
  141.     //Item Tooltips
  142.     public static Event<InventoryItem> OnShowInventoryItemTooltip = new Event<InventoryItem>();
  143.     public static Event OnHideTooltip = new Event();
  144.     //Craftable action Tooltip
  145.     public static Event<ItemBase, bool> OnShowSkillActionTooltip = new Event<ItemBase, bool>();
  146.     public static Event<string> OnShowTooltip = new Event<string>();
  147.     #endregion
  148.  
  149.     #region Other
  150.     //Skill Sprites
  151.     public static ReturnEvent<CraftSkill, Sprite> OnRequestSkillSprite = new ReturnEvent<CraftSkill, Sprite>();
  152.     public static ReturnEvent<string, Sprite> OnRequestEffectSprite = new ReturnEvent<string, Sprite>();
  153.     #endregion
  154.  
  155.     #region Save/Load
  156.     //Load Game
  157.     public static Event OnGameLoaded = new Event();
  158.     public static Event<List<InventoryItem>> OnSendItemsList = new Event<List<InventoryItem>>();
  159.     public static Event<CraftSkill, SkillStruct> OnLoadSkill = new Event<CraftSkill, SkillStruct>();
  160.     public static Event<SavedToolbelt> OnSetupToolbelt = new Event<SavedToolbelt>();
  161.     public static Event<List<Effect>, List<Effect>> OnSetupEffects = new Event<List<Effect>, List<Effect>>();
  162.     public static Event<List<string>> OnSetupPrestigeRewards = new Event<List<string>>();
  163.     //Save Game
  164.     public static ReturnEvent<CraftSkill, SkillStruct> OnRequestSkillData = new ReturnEvent<CraftSkill, SkillStruct>();
  165.     public static ReturnEvent<Toolbelt> OnRequestToolbelt = new ReturnEvent<Toolbelt>();
  166.     public static ReturnEvent<List<Effect>> OnRequestAllEffects = new ReturnEvent<List<Effect>>();
  167.     public static ReturnEvent<List<Effect>> OnRequestAllPermanentEffects = new ReturnEvent<List<Effect>>();
  168.     public static ReturnEvent<Companion[]> OnRequestAllCompanions = new ReturnEvent<Companion[]>();
  169.     public static ReturnEvent<List<string>> OnRequestCompletedAchievements = new ReturnEvent<List<string>>();
  170.     //Reset everything
  171.     public static Event OnHardReset = new Event();
  172.     #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement