Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lootbox namespace change and error checks #700

Merged
merged 5 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Chainlink.LootBoxes.Scene;
using LootBoxes.Chainlink.Scene;
using Chainsafe.Gaming.Chainlink;
using ChainSafe.Gaming.Debugging;
using ChainSafe.Gaming.Evm.JsonRpc;
Expand All @@ -11,7 +11,7 @@
using UnityEngine;


namespace Chainlink.LootBoxes
namespace LootBoxes.Chainlink
{
/// <summary>
/// Initializes Web3 using local RPC node and node's user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Threading.Tasks;
using ChainSafe.Gaming.Web3.Environment;

namespace Chainlink.LootBoxes
namespace LootBoxes.Chainlink
{
public class Erc1155MetaData
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Chainlink.LootBoxes
namespace LootBoxes.Chainlink
{
public static class Menues
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using UnityEngine;
using UnityEngine.UI;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class Blackout : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
[RequireComponent(typeof(Renderer))]
[ExecuteInEditMode]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class LootBoxScene : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class LootBoxSceneException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class Lootbox : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using TMPro;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class CoinReward : Reward
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System;
using System.Threading.Tasks;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using ChainSafe.Gaming.UnityPackage;
using UnityEngine;
using UnityEngine.Networking;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class Erc1155NftRewardFactory : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.Threading.Tasks;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using ChainSafe.Gaming.UnityPackage;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class Erc1155RewardFactory : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
using System.Globalization;
using System.Numerics;
using System.Threading.Tasks;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using ChainSafe.Gaming.UnityPackage;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class Erc20RewardFactory : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.Threading.Tasks;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using ChainSafe.Gaming.UnityPackage;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class Erc721NftRewardFactory : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class NftReward : Reward
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public abstract class Reward : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using ChainSafe.Gaming.Evm.Contracts;
using ChainSafe.Gaming.Lootboxes.Chainlink;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class RewardStageItemSpawner : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class Stage : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class StageCamera : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Linq;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class StageFocus : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using Object = UnityEngine.Object;

namespace Chainlink.LootBoxes.Scene.StageItems
namespace LootBoxes.Chainlink.Scene.StageItems
{
public class LootBoxStageItemFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.StageItems
namespace LootBoxes.Chainlink.Scene.StageItems
{
[CreateAssetMenu(menuName = Menues.Root + "LootBoxPrefabSet", fileName = "LootBoxPrefabSet", order = 0)]
public class LootBoxesFrontEndDataSet : ScriptableObject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using UnityEngine.Serialization;

namespace Chainlink.LootBoxes.Scene.StageItems
namespace LootBoxes.Chainlink.Scene.StageItems
{
public class StageItem : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class EmptyState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public enum FadeGoal
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class LoadLootBoxesState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class LoadLootBoxesToClaim : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class LoadOpeningLootBoxes : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class LoadRewardsState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public abstract class LootBoxSceneState : StateMachineBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Linq;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class OpenLootBoxesState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Threading.Tasks;
using Chainlink.LootBoxes.Scene.StageItems;
using LootBoxes.Chainlink.Scene.StageItems;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class PromptToClaimRewardsState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using ChainSafe.Gaming.Lootboxes.Chainlink;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class ResetStageState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using ChainSafe.Gaming.Lootboxes.Chainlink;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class SelectLootBoxesState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class ViewRewardsState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Threading.Tasks;
using UnityEngine;

namespace Chainlink.LootBoxes.Scene.States
namespace LootBoxes.Chainlink.Scene.States
{
public class WaitTillCanClaimRewardState : LootBoxSceneState
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class EmptyStateUI : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class OpenLootBoxUI : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnityEngine;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class PromptClaimRewardsUI : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using UnityEngine;
using UnityEngine.UI;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class SelectLootBoxesUI : MonoBehaviour
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using UnityEngine.UI;

namespace Chainlink.LootBoxes.Scene
namespace LootBoxes.Chainlink.Scene
{
public class ViewRewardsUI : MonoBehaviour
{
Expand Down
Loading
Loading