Exemplo n.º 1
0
        /// <summary>
        /// Builds the RewardNodeData represented by this builder's parameters recursively
        /// and registers it and its components with the appropriate managers.
        /// </summary>
        /// <returns>The newly registered RewardNodeData</returns>
        public RewardNodeData BuildAndRegister()
        {
            var rewardNodeData = this.Build();

            CustomMapNodePoolManager.RegisterCustomRewardNode(rewardNodeData, this.MapNodePoolIDs);
            return(rewardNodeData);
        }
 static void Postfix(RandomMapDataContainer __instance, RunState.ClassType ____classTypeOverride, List <MapNodeData> __result)
 {
     CustomMapNodePoolManager.AddRewardNodesForPool(__instance.name, __result, ____classTypeOverride);
 }