-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptSummary.json
More file actions
2024 lines (2024 loc) · 98.6 KB
/
ScriptSummary.json
File metadata and controls
2024 lines (2024 loc) · 98.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"scripts": [
{
"fileName": "AIManager.cs",
"path": "Assets\\Scripts\\AI\\AIManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "AIManager",
"methods": [
"private void Awake()",
"public void InitializeBot(Type botType, PlayerEnum botId)",
"public void InitializeManager(SoTGameManager gameManager)",
"public bool IsAITurn()",
"public void PickOnePatron(List<PatronId> availablePatrons, int round, Action<PatronId> onResult)",
"public void PlaySingleMove()",
"public void PlayFullTurn()",
"public IEnumerator PregamePrepareCoroutine()",
"public IEnumerator SelectPatronCoroutine(List<PatronId> availablePatrons, int round, Action<PatronId> onResult)",
"private IEnumerator PlaySingleMoveCoroutine()",
"private IEnumerator PlayFullTurnCoroutine()",
"private IEnumerator ExecuteWhenReady(Move move)",
"private IEnumerator GetMoveFromBotCoroutine(GameState state, List<Move> legalMoves, Action<Move> onResult)",
"public IEnumerator GameEndCoroutine(EndGameState result, FullGameState? finalBoardState)",
"public AI CreateBotByType(BotType botType)",
"private void OnApplicationQuit()",
"private void OnDisable()",
"private void TrySendGameEndIfGrpcBot()"
],
"fields": [
"[SerializeField] private CompletedActionProcessor completedActionProcessor; private AI _bot;",
"private PlayerEnum _aiPlayer;",
"private SoTGameManager _gameManager;"
]
},
{
"fileName": "BotType.cs",
"path": "Assets\\Scripts\\AI\\BotType.cs",
"namespaceName": "",
"kind": "enum",
"typeName": "BotType",
"methods": [],
"fields": []
},
{
"fileName": "ProjectileSoundTrigger.cs",
"path": "Assets\\Scripts\\Audio\\ProjectileSoundTrigger.cs",
"namespaceName": "",
"kind": "class",
"typeName": "ProjectileSoundTrigger",
"methods": [
"private IEnumerator Start()"
],
"fields": [
"public float delay = 0.01f;"
]
},
{
"fileName": "BoardManager.cs",
"path": "Assets\\Scripts\\Board\\BoardManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "BoardManager",
"methods": [
"[Header(\"Player Zones\")] [SerializeField] private Transform playerDrawPile; [SerializeField] private Transform playerCooldown; [SerializeField] private Transform playerHand; [SerializeField] private Transform playerPlayed; [SerializeField] private Transform playerAgents; [Header(\"Enemy Zones\")] [SerializeField] private Transform enemyDrawPile; [SerializeField] private Transform enemyCooldown; [SerializeField] private Transform enemyHand; [SerializeField] private Transform enemyPlayed; [SerializeField] private Transform enemyAgents; [Header(\"Tavern\")] [SerializeField] private Transform tavernPile; [SerializeField] private List<Transform> tavernCardSpots; [Header(\"UI\")] [SerializeField] private TextMeshProUGUI playerGold; [SerializeField] private TextMeshProUGUI playerPrestige; [SerializeField] private TextMeshProUGUI playerPower; [SerializeField] private TextMeshProUGUI playerPatronCalls; [SerializeField] private TextMeshProUGUI enemyGold; [SerializeField] private TextMeshProUGUI enemyPrestige; [SerializeField] private TextMeshProUGUI enemyPower; [SerializeField] private TextMeshProUGUI enemyPatronCalls; [Header(\"Prefabs / Pool\")] [SerializeField] private GameObject cardPrefab; [SerializeField] private Transform offscreenCardContainer; [SerializeField] private Transform powerOriginPointPlayer1; [SerializeField] private Transform powerOriginPointPlayer2; [SerializeField] private GameObject powerProjectilePrefab; public bool HasCardObject(UniqueId id) => cardObjects.ContainsKey(id);",
"public GameObject GetCardObject(UniqueId id) => cardObjects[id];",
"private void Awake()",
"public void RegisterPatronTransform(PatronId patronId, Transform transform)",
"public void ClearBoard()",
"public void InitializeBoard(FullGameState state)",
"public void UpdateBoard(FullGameState state, UpdateReason reason)",
"private void SetupPlayer(SerializedPlayer playerData, bool isPlayer)",
"private void SetupTavern(FullGameState state)",
"private void SetUpUI(FullGameState state)",
"private GameObject CreateCardObject(UniqueCard cardData, Transform parentTransform)",
"public void CreateCardObjectFromRuntime(UniqueCard card, ZoneType initialZone, ZoneSide side)",
"public void MoveCardToZone(UniqueId cardId, Transform targetZone, ZoneType zoneType, ZoneSide zoneSide, System.Action? onComplete = null)",
"public Transform GetZoneTransform(ZoneType zone, ZoneSide side)",
"public List<Card> GetCardsInZone(ZoneType zone, ZoneSide side)",
"private Transform FindFirstFreeTavernSpot()",
"public IEnumerator AnimateAddCardToTavernDelayed(UniqueId card)",
"public void DestroyCards(List<UniqueCard> cardsToDestroy)",
"private IEnumerator UpdateAgentHealthCoroutine(FullGameState state)",
"public void DebugCheckHandSync(FullGameState state)"
],
"fields": [
"private HashSet<Transform> reservedTavernSpots = new();"
]
},
{
"fileName": "BoardManager.cs",
"path": "Assets\\Scripts\\Board\\BoardManager.cs",
"namespaceName": "",
"kind": "enum",
"typeName": "UpdateReason",
"methods": [],
"fields": []
},
{
"fileName": "CardLayoutManager.cs",
"path": "Assets\\Scripts\\Board\\CardLayoutManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardLayoutManager",
"methods": [
"private void Awake()",
"public void ScheduleLayout(ZoneType zone, ZoneSide side)",
"private void LateUpdate()",
"private void ArrangeHand(ZoneSide side)",
"private void ArrangeAgents(ZoneSide side)"
],
"fields": []
},
{
"fileName": "CardZone.cs",
"path": "Assets\\Scripts\\Board\\CardZone.cs",
"namespaceName": "",
"kind": "enum",
"typeName": "ZoneType",
"methods": [],
"fields": []
},
{
"fileName": "CardZone.cs",
"path": "Assets\\Scripts\\Board\\CardZone.cs",
"namespaceName": "",
"kind": "enum",
"typeName": "ZoneSide",
"methods": [],
"fields": []
},
{
"fileName": "CardZone.cs",
"path": "Assets\\Scripts\\Board\\CardZone.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardZone",
"methods": [],
"fields": [
"public ZoneType zoneType;",
"public ZoneSide zoneSide;"
]
},
{
"fileName": "CompletedActionProcessor.cs",
"path": "Assets\\Scripts\\Board\\CompletedActionProcessor.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CompletedActionProcessor",
"methods": [
"private void Update()",
"private void ClearProcessor()",
"public void SetInitialSnapshot(FullGameState state)",
"public void CompareAndQueueChanges(FullGameState newState, object? source = null)",
"private void CompareAndQueue(HashSet<UniqueId> previousSet, List<UniqueCard> currentList, ZoneType zoneType, ZoneSide zoneSide, HashSet<UniqueId> storage)",
"private void CompareAndQueueAgents(HashSet<(UniqueId, bool, int)> previousSet, List<SerializedAgent> currentAgents, int enemyPowerDiff, ZoneSide side, HashSet<(UniqueId, bool, int)> storage)",
"private void Start()",
"private IEnumerator ConsumeQueue()",
"private ZoneType GetSourceOfCreatedCard(UniqueCard card)",
"private string FormatAmount(int amount, string label)"
],
"fields": [
"private Queue<VisualCommand> _visualQueue = new();",
"private HashSet<UniqueId> _prevPlayer1Hand = new();",
"private HashSet<UniqueId> _prevPlayer1Played = new();",
"private HashSet<UniqueId> _prevPlayer1Cooldown = new();",
"private HashSet<UniqueId> _prevPlayer1Draw = new();",
"private int _prevPlayer1Power = 0;",
"private HashSet<UniqueId> _prevPlayer2Hand = new();",
"private HashSet<UniqueId> _prevPlayer2Played = new();",
"private HashSet<UniqueId> _prevPlayer2Cooldown = new();",
"private HashSet<UniqueId> _prevPlayer2Draw = new();",
"private int _prevPlayer2Power = 0;",
"private HashSet<UniqueId> _prevTavernAvailable = new();",
"private HashSet<UniqueId> _prevTavernPile = new();",
"public bool IsBusy => _visualQueue.Count > 0;",
"public int ElementsInQueue => _visualQueue.Count;",
"private int _lastProcessedActionIndex = 0;"
]
},
{
"fileName": "PatronManager.cs",
"path": "Assets\\Scripts\\Board\\PatronManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "PatronManager",
"methods": [
"[SerializeField] private GameObject patronPrefab; [SerializeField] private Transform[] patronSlots = new Transform[5]; [SerializeField] private SoTGameManager soTGameManager; public void InitializePatrons(PatronId[] patronIds)",
"public PlayerEnum GetFavorable(PatronId patronId)",
"public void UpdateObjects(PatronStates newStates)",
"private Sprite LoadPatronSprite(PatronId patronId)"
],
"fields": []
},
{
"fileName": "VisualCommands.cs",
"path": "Assets\\Scripts\\Board\\VisualCommands.cs",
"namespaceName": "",
"kind": "class",
"typeName": "VisualCommand",
"methods": [],
"fields": []
},
{
"fileName": "VisualCommands.cs",
"path": "Assets\\Scripts\\Board\\VisualCommands.cs",
"namespaceName": "",
"kind": "class",
"typeName": "MoveCardCommand",
"methods": [],
"fields": [
"private UniqueId _cardId;",
"private ZoneType _zone;",
"private ZoneSide _side;"
]
},
{
"fileName": "VisualCommands.cs",
"path": "Assets\\Scripts\\Board\\VisualCommands.cs",
"namespaceName": "",
"kind": "class",
"typeName": "PlayProjectileCommand",
"methods": [],
"fields": [
"private UniqueId _targetCardId;",
"private ZoneSide _side;"
]
},
{
"fileName": "VisualCommands.cs",
"path": "Assets\\Scripts\\Board\\VisualCommands.cs",
"namespaceName": "",
"kind": "class",
"typeName": "PlayHealingEffectCommand",
"methods": [],
"fields": [
"private UniqueId _targetCardId;",
"private ZoneSide _side;"
]
},
{
"fileName": "VisualCommands.cs",
"path": "Assets\\Scripts\\Board\\VisualCommands.cs",
"namespaceName": "",
"kind": "class",
"typeName": "ShowAgentActivationCommand",
"methods": [],
"fields": [
"private GameObject _cardObject;",
"private bool _activate;"
]
},
{
"fileName": "VisualCommands.cs",
"path": "Assets\\Scripts\\Board\\VisualCommands.cs",
"namespaceName": "",
"kind": "class",
"typeName": "GainEffectPopupBatchCommand",
"methods": [],
"fields": []
},
{
"fileName": "CameraDrag.cs",
"path": "Assets\\Scripts\\Camera\\CameraDrag.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CameraDrag",
"methods": [],
"fields": [
"public float moveSpeed = 5f;",
"public float edgeThreshold = 50f;",
"public SpriteRenderer BoardSprite;",
"private Vector3 lowBounds => BoardSprite.bounds.min;",
"private Vector3 highBounds => BoardSprite.bounds.max;"
]
},
{
"fileName": "Card.cs",
"path": "Assets\\Scripts\\Cards\\Card.cs",
"namespaceName": "",
"kind": "class",
"typeName": "Card",
"methods": [
"public void SetLayoutPosition(Vector3 pos) => _layoutPosition = pos;",
"public Vector3 GetLayoutPosition() => _layoutPosition;",
"public Sprite GetOriginalSprite() => _originalSprite;",
"public void Start()",
"[ContextMenu(\"Test Activation Effect\")] public void TestActivationEffect()",
"public UniqueCard GetCard()",
"public void SetAnimating(bool value)",
"public bool IsAnimating()",
"public void SetVisible(bool visible)",
"public bool IsVisible()",
"public void InitializeCard(UniqueCard card)",
"public void UpdateAgentHealth(SerializedAgent agent)",
"public void SetZoneInfo(ZoneType type, ZoneSide side)",
"public bool IsInPlayerHand()",
"public bool IsInEnemyHand()",
"public bool IsInTavern()",
"public bool IsInZone(ZoneType type, ZoneSide side)",
"public bool ShouldBeVisible()",
"public void ShowActivationEffect()",
"public void RemoveActivationEffect()"
],
"fields": [
"public SpriteRenderer spriteRenderer;",
"public TextMeshPro hpText;",
"private UniqueCard _card;",
"[field: SerializeField] private bool _isAnimating = false;",
"private bool _isVisible = true;",
"private Sprite _originalSprite;",
"private Material _originalMaterial;",
"[SerializeField] private ZoneType _zoneType; [SerializeField] private ZoneSide _zoneSide; public ZoneType ZoneType => _zoneType;",
"public ZoneSide ZoneSide => _zoneSide;",
"[SerializeField] private Sprite backSprite; [SerializeField] private Material activationMaterial; private Vector3 _layoutPosition;"
]
},
{
"fileName": "CardLayoutBehaviour.cs",
"path": "Assets\\Scripts\\Cards\\CardLayoutBehaviour.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardLayoutBehaviour",
"methods": [
"private void Start()",
"public void ApplyLayout()",
"public void OnPointerEnter(PointerEventData eventData)",
"public void OnPointerExit(PointerEventData eventData)",
"public void SetSortingOrder(int baseOrder)",
"public void SetSortingLayer(string layerName)"
],
"fields": [
"[SerializeField] private float playerHandScale = 1.0f; [SerializeField] private float playerPlayedScale = 0.7f; [SerializeField] private float playerAgentScale = 0.8f; [SerializeField] private float enemyHandScale = 0.65f; [SerializeField] private float enemyPlayedScale = 0.5f; [SerializeField] private float enemyAgentScale = 0.575f; private Vector3 defaultScale;",
"private int _originalSortingOrder;",
"private bool _isHovered;",
"private SpriteRenderer _spriteRenderer;",
"[SerializeField] private TextMeshPro _hpText; [SerializeField] private float defaultPlayerRotation = 0f; [SerializeField] private float defaultEnemyRotation = 180f; [SerializeField] private float scaleFactor = 1.5f; [SerializeField] private int hoverSortingOrder = 100; private SortingGroup sortingGroup;",
"private Card _card;"
]
},
{
"fileName": "CardManager.cs",
"path": "Assets\\Scripts\\Cards\\CardManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardManager",
"methods": [
"[Header(\"Deck Card Prefabs\")] [SerializeField] private GameObject[] DeckPrefabs; // 9 prefabów, dla każdego decku [Header(\"Effect Icon Mapping\")] [SerializeField] private List<EffectPrefabPairs> EffectIconsList; [Header(\"Effect Prefab\")] [SerializeField] private GameObject BasicEffectPrefab; [SerializeField] private GameObject ComboEffectPrefab; [Header(\"Card Settings\")] [SerializeField] public float CardScale = 1.0f; [SerializeField] private List<DeckScaleOverride> deckScaleOverrides; public float GetDefaultScaleForDeck(PatronId deck) => _overrideDict.TryGetValue(deck, out var s) ? s : CardScale;",
"private void Awake()",
"private void InitializeEffectIcons()",
"public GameObject CreateCardVisual(UniqueCard cardData)",
"private void ConfigureCard(GameObject cardObject, UniqueCard cardData)",
"private List<UniqueBaseEffect> GetDecomposedEffects(UniqueComplexEffect?[] effects, int index)",
"private List<UniqueBaseEffect> GetComboEffects(UniqueComplexEffect?[] effects)",
"private void ConfigureEffects(Transform container, List<UniqueBaseEffect> effects, bool IsBasic=true)",
"private void ConfigureEffect(GameObject effectObject, UniqueBaseEffect effect)",
"private VisualEffectType MapEffectTypeToVisual(UniqueBaseEffect effect)",
"private string GetEffectText(UniqueBaseEffect effect)"
],
"fields": []
},
{
"fileName": "CardManager.cs",
"path": "Assets\\Scripts\\Cards\\CardManager.cs",
"namespaceName": "",
"kind": "enum",
"typeName": "VisualEffectType",
"methods": [],
"fields": []
},
{
"fileName": "CardManager.cs",
"path": "Assets\\Scripts\\Cards\\CardManager.cs",
"namespaceName": "",
"kind": "struct",
"typeName": "EffectPrefabPairs",
"methods": [],
"fields": [
"public VisualEffectType Type;",
"public Sprite Icon;"
]
},
{
"fileName": "CardManager.cs",
"path": "Assets\\Scripts\\Cards\\CardManager.cs",
"namespaceName": "",
"kind": "struct",
"typeName": "DeckScaleOverride",
"methods": [],
"fields": [
"public PatronId Deck;",
"public float Scale;"
]
},
{
"fileName": "CardController.cs",
"path": "Assets\\Scripts\\Controllers\\CardController.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardController",
"methods": [
"public void OnPointerClick(PointerEventData eventData)",
"public void OnPointerExit(PointerEventData eventData)",
"public void OnPointerEnter(PointerEventData eventData)",
"private bool IsInPileZone(Card card)",
"private void HandleLeftClick()",
"private void HandleRightClick()"
],
"fields": [
"public Card card;"
]
},
{
"fileName": "CardTooltip.cs",
"path": "Assets\\Scripts\\Controllers\\CardTooltip.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardTooltip",
"methods": [
"[SerializeField] private TextMeshProUGUI cardNameText; [SerializeField] private TextMeshProUGUI deckText; [SerializeField] private TextMeshProUGUI typeText; [SerializeField] private TextMeshProUGUI effectText; public void Setup(UniqueCard card)",
"private string BuildEffectText(UniqueCard card)",
"private string EffectToString(UniqueComplexEffect effect)",
"public void SetPositionRelativeTo(Transform cardTransform)",
"private string EffectDescription(EffectType type, int value)",
"private Vector2 AdjustYToStayInCanvas(Vector2 anchoredPos, RectTransform tooltipRT, RectTransform canvasRT)"
],
"fields": []
},
{
"fileName": "PileZoneClickable.cs",
"path": "Assets\\Scripts\\Controllers\\PileZoneClickable.cs",
"namespaceName": "",
"kind": "class",
"typeName": "PileZoneClickable",
"methods": [
"[SerializeField] private ZoneSide zoneSide; [SerializeField] private PileType pileType; public void OnClickedFromCard()"
],
"fields": []
},
{
"fileName": "PileZoneClickable.cs",
"path": "Assets\\Scripts\\Controllers\\PileZoneClickable.cs",
"namespaceName": "",
"kind": "enum",
"typeName": "PileType",
"methods": [],
"fields": []
},
{
"fileName": "AudioManager.cs",
"path": "Assets\\Scripts\\Gameplay\\AudioManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "AudioManager",
"methods": [
"public void ApplyVolumes()",
"public void PlaySound(AudioClip clip, float volume=1f)",
"public void PlayMusic(AudioClip clip)",
"public void PlayCardPlaySfx()",
"public void PlayCardDrawSfx()",
"public void PlayCardBuySfx()",
"public void PlayPatronActivateSfx()",
"public void PlayYourTurnSfx()",
"public void PlayMainMenuMusic()",
"public void PlayGameMusic()",
"public void PlayProjectileSound()",
"public void SwapMusic(AudioClip newClip, float fadeDuration = 0.5f)",
"private IEnumerator SwapMusicCoroutine(AudioClip newClip, float fadeDuration)"
],
"fields": [
"[Header(\"Audio Sources\")] public AudioSource sfxSource;",
"public AudioSource musicSource;",
"[Header(\"Clips\")] public AudioClip cardPlay;",
"public AudioClip cardDraw;",
"public AudioClip cardBuy;",
"public AudioClip patronActivate;",
"public AudioClip mainMenuMusic;",
"public AudioClip gameMusic;",
"public AudioClip projectileSound;",
"public AudioClip endTurnSound;",
"public AudioClip defeatSound;",
"public AudioClip victorySound;"
]
},
{
"fileName": "GameManager.cs",
"path": "Assets\\Scripts\\Gameplay\\GameManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "GameManager",
"methods": [
"public void SetAutoPlayAI(bool value) => autoPlayAI = value;",
"private void Awake()",
"public void StartGameWithPatrons(PatronId[] patrons, ulong seed = 0)",
"private void Update()",
"public void OnEndTurnButtonClicked()",
"public void PlaySingleAIMove()",
"public void PlayAiTurn()",
"public void HandleEndTurn(ZoneSide sideCalling)",
"public void ExecuteMove(Move move, PlayerEnum player)",
"public void PlayCard(UniqueCard card, ZoneSide side)",
"public void BuyCard(UniqueCard card, ZoneSide side)",
"public void ActivateAgent(UniqueCard card, ZoneSide side)",
"public void AttackAgent(UniqueCard card, ZoneSide side)",
"public void CallPatron(PatronId patron, ZoneSide side)",
"public void MakeChoice(List<UniqueCard> selectedCards)",
"public void MakeChoice(UniqueEffect selectedEffect)",
"public void HandleEndGame(EndGameState end, Move triggeringMove)",
"private IEnumerator ShowStartOfHumanTurnRoutine()",
"public void InitializeDebugGame()",
"private UniqueCard FindAndRemoveCard(CardId id, List<UniqueCard> availableCards)"
],
"fields": [
"[SerializeField] private SoTGameManager _soTGameManager; [SerializeField] private UIManager _uiManager; // [SerializeField] private AudioManager _audioManager;",
"[SerializeField] private AIManager _aiManager; [SerializeField] private PatronManager _patronManager; [SerializeField] private PlayerEnum CurrentTurn = PlayerEnum.NO_PLAYER_SELECTED; [SerializeField] public PlayerEnum HumanPlayer = PlayerEnum.PLAYER1; [SerializeField] public PlayerEnum AIPlayer => HumanPlayer == PlayerEnum.PLAYER1 ? PlayerEnum.PLAYER2 : PlayerEnum.PLAYER1; [Header(\"Debug mode\")] [SerializeField] private bool debugMode = false; [SerializeField] private bool debugPlayerStartsFirst = true; [SerializeField] private List<CardId> debugPlayer1Hand = new(); [SerializeField] private List<CardId> debugPlayer2Hand = new(); [SerializeField] private List<CardId> debugPlayer1Agents = new(); [SerializeField] private List<CardId> debugPlayer2Agents = new(); [SerializeField] private List<CardId> debugPlayer1DrawPile = new(); [SerializeField] private List<CardId> debugPlayer2DrawPile = new(); [SerializeField] private List<CardId> debugTavernCards = new(); [SerializeField] private List<PatronId> debugPatrons = new(); [SerializeField] private int debugPlayer1Prestige = 0; [SerializeField] private int debugPlayer2Prestige = 0; [SerializeField] private int debugPlayer1Power = 0; [SerializeField] private int debugPlayer2Power = 0; [SerializeField] private int debugPlayer1Coins = 0; [SerializeField] private int debugPlayer2Coins = 0; public bool IsDebugMode => debugMode;",
"public bool IsHumanPlayersTurn => CurrentTurn == HumanPlayer;",
"[SerializeField] private bool autoPlayAI = false; public bool AutoPlayAI => autoPlayAI;"
]
},
{
"fileName": "GameSetupManager.cs",
"path": "Assets\\Scripts\\Gameplay\\GameSetupManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "GameSetupManager",
"methods": [
"private void Awake()",
"private void Start()",
"public void StartInitialSetup(Type selectedBot, PlayerEnum humanPlayer, PlayerEnum botPlayer, bool isDebugMode, string seed)",
"public void StartGameWithPatrons(List<PatronId> selectedPatrons)",
"public void ResetAndStartPatronDraft()",
"private IEnumerator ResetAndStartPatronDraftCoroutine()",
"private List<PatronId> GetAvailablePatrons()"
],
"fields": [
"[Header(\"Manager References\")] [SerializeField] private GameManager _gameManager; [SerializeField] private BoardManager _boardManager; [SerializeField] private AIManager _aiManager; [SerializeField] private CompletedActionHistoryBuilder _historyBuilder; [SerializeField] private UIManager _uiManager; [SerializeField] private GameSetupPanelController _setupcontroller; [Header(\"Game Settings\")] private Type _selectedBot;",
"[SerializeField] private bool botDebugMode = false; public bool IsBotDebugMode => botDebugMode;",
"private ulong _seed = 0;",
"private PlayerEnum _humanPlayer;",
"private PlayerEnum _botPlayer;",
"public PlayerEnum HumanPlayer => _humanPlayer;"
]
},
{
"fileName": "SoTGameManager.cs",
"path": "Assets\\Scripts\\Gameplay\\SoTGameManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "SoTGameManager",
"methods": [
"[SerializeField] private CompletedActionProcessor completedActionProcessor; public void InitializeGame(PatronId[] patrons, ulong seed = 0)",
"public void InitializeDebugGame(FullGameState debugState)",
"public void RefreshCache(FullGameState newState)",
"public FullGameState GetCurrentGameState()",
"public bool IsMoveLegal(Move move)",
"public bool IsChoicePending()",
"public void DebugPrintHands(FullGameState state)"
],
"fields": [
"private IScriptsOfTributeApi _api;",
"private List<Move> _cachedLegalMoves = new();",
"private PatronStates _patronStates;",
"public PatronStates PatronStates => _patronStates;",
"public List<Move> LegalMoves => _cachedLegalMoves;",
"public PlayerEnum CurrentPlayer => _api.CurrentPlayerId;"
]
},
{
"fileName": "GlobalSceneLoader.cs",
"path": "Assets\\Scripts\\Infrastructure\\GlobalSceneLoader.cs",
"namespaceName": "",
"kind": "class",
"typeName": "GlobalSceneLoader",
"methods": [],
"fields": []
},
{
"fileName": "PatronClickable.cs",
"path": "Assets\\Scripts\\Patrons\\PatronClickable.cs",
"namespaceName": "",
"kind": "class",
"typeName": "PatronClickable",
"methods": [
"public void Initialize(PatronId id)",
"public void OnPointerClick(PointerEventData eventData)",
"public void OnPointerExit(PointerEventData eventData)",
"public void OnPointerEnter(PointerEventData eventData)",
"public void UpdatePatronCircleRotation()",
"private string GetTooltipText(PatronId id)"
],
"fields": [
"private PatronId _patronId;",
"private string _tooltipText;",
"[SerializeField] private GameObject patronCircle; public PlayerEnum favoring;",
"private Vector3 _neutralRotate = new Vector3(0f, 0f, 90f);",
"private Vector3 _player1FavorRotate = new Vector3(0f, 0f, 179f);",
"private Vector3 _player2FavorRotate = new Vector3(0f, 0f, 1f);"
]
},
{
"fileName": "BotLogPanelController.cs",
"path": "Assets\\Scripts\\UI\\BotLogPanelController.cs",
"namespaceName": "",
"kind": "class",
"typeName": "BotLogPanelController",
"methods": [
"private void Start()",
"private IEnumerator LogWatcher()",
"private void Update()",
"public void OnPointerEnter() => isMouseOver = true;",
"public void OnPointerExit() => isMouseOver = false;",
"private void TryAppendNewLogs()",
"public void Clear()"
],
"fields": [
"[Header(\"References\")] [SerializeField] private RectTransform panelRoot; [SerializeField] private TMP_InputField logInputField; [SerializeField] private int maxLogsToShow = 100; [Header(\"Animation\")] [SerializeField] private float hiddenX = -240f; [SerializeField] private float visibleX = 0f; [SerializeField] private float slideSpeed = 500f; private bool isMouseOver = false;",
"private bool isAnimating = false;",
"private int lastLogIndex = 0;",
"private StringBuilder _logBuilder = new();"
]
},
{
"fileName": "CardLookupPanelController.cs",
"path": "Assets\\Scripts\\UI\\CardLookupPanelController.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardLookupPanelController",
"methods": [
"private void Awake()",
"public void Show(ZoneSide side, PileType startingPile)",
"public void Hide()",
"private void SwitchPile(PileType newPile)",
"private void UpdateView()",
"private void UpdateButtonScales()",
"private Transform GetPileTransform(ZoneSide side, PileType pileType)",
"private void ClearContent()",
"private IEnumerator AddToContentCoroutine(List<(UniqueCard card, Sprite sprite, string hpText)> sprites)",
"private IEnumerator FadeInContent()",
"private IEnumerator FadeOutAndDisable()"
],
"fields": [
"[Header(\"UI Elements\")] [SerializeField] private GameObject panelRoot; [SerializeField] private Button playedPileButton; [SerializeField] private Button cooldownPileButton; [SerializeField] private Button drawPileButton; [SerializeField] private Transform cardContentParent; [SerializeField] private GameObject cardPrefab; [SerializeField] private Button closePanelButton; [Header(\"Button Scale Settings\")] [SerializeField] private Vector3 selectedScale = Vector3.one; [SerializeField] private Vector3 unselectedScale = new Vector3(0.8f, 0.8f, 0.8f); [Header(\"Player 1 Zones\")] [SerializeField] private Transform player1DrawPile; [SerializeField] private Transform player1PlayedPile; [SerializeField] private Transform player1CooldownPile; [Header(\"Player 2 Zones\")] [SerializeField] private Transform player2DrawPile; [SerializeField] private Transform player2PlayedPile; [SerializeField] private Transform player2CooldownPile; private Coroutine loadingCoroutine;",
"private ZoneSide currentSide;",
"private PileType currentPile;",
"private bool isClosing = false;"
]
},
{
"fileName": "CardUITooltip.cs",
"path": "Assets\\Scripts\\UI\\CardUITooltip.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardUITooltip",
"methods": [
"[SerializeField] private RectTransform thisRect; private void Awake()",
"public void OnPointerClick(PointerEventData eventData)",
"public void OnPointerExit(PointerEventData eventData)",
"public void SetCardData(UniqueCard card)"
],
"fields": [
"private UniqueCard cardData;"
]
},
{
"fileName": "EndTurnHover.cs",
"path": "Assets\\Scripts\\UI\\EndTurnHover.cs",
"namespaceName": "",
"kind": "class",
"typeName": "EndTurnHover",
"methods": [
"public void OnPointerEnter(PointerEventData eventData)",
"public void OnPointerExit(PointerEventData eventData)",
"public void OnPointerClick(PointerEventData eventData)",
"private void StartFade(float fromAlpha, float toAlpha, System.Action onComplete = null)"
],
"fields": [
"[SerializeField] private TextMeshProUGUI hoverText; [SerializeField] private float fadeDuration = 0.2f; private Coroutine currentFade;"
]
},
{
"fileName": "RightClickHintController.cs",
"path": "Assets\\Scripts\\UI\\RightClickHintController.cs",
"namespaceName": "",
"kind": "class",
"typeName": "RightClickHintController",
"methods": [
"public void Show(object owner, string text = \"[RMB] Tooltip\")",
"public void Hide(object owner)",
"private IEnumerator FadeCanvas(float targetAlpha, bool enableInteraction)"
],
"fields": [
"[Header(\"UI References\")] [SerializeField] private CanvasGroup canvasGroup; [SerializeField] private TextMeshProUGUI label; [Header(\"Fade Settings\")] [SerializeField] private float fadeDuration = 0.2f; private Coroutine currentRoutine;",
"private object currentOwner = null;",
"private string currentText = null;"
]
},
{
"fileName": "UIManager.cs",
"path": "Assets\\Scripts\\UI\\UIManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "UIManager",
"methods": [
"private void Awake()",
"private void Update()",
"public void OnAutoPlayAIToggleChanged()",
"public void ShowSettingsPanel()",
"public void ShowPatronDraft(List<PatronId> patrons)",
"public void ShowAiButtons(bool show)",
"private void OnAiMoveClicked()",
"private void OnAiFullTurnClicked()",
"public void ShowChoice(SerializedChoice choice)",
"public IEnumerator ShowYourTurnMessage()",
"public void ShowPatronTooltip(string name, string text)",
"public void HidePatronTooltip()",
"public void ShowCardTooltip(UniqueCard card, Transform cardWorldTransform)",
"public void HideCardTooltip()",
"public void HandleEndGame(EndGameState endGameState, FullGameState finalState)",
"public void CardLookup(ZoneSide side, PileType startingPile)",
"public void InitializeCombosPanel(PatronId[] patrons)",
"public void UpdateCombosPanel(ComboStates comboStates)",
"public void ShowHint(object owner, string text = \"[RMB] Tooltip\")",
"public void HideHint(object owner)",
"private IEnumerator FadeTooltip(float targetAlpha, float duration)",
"private IEnumerator FadeIn(GameObject panel, float fadeDuration)"
],
"fields": [
"[Header(\"AI Buttons\")] [SerializeField] private Button aiMoveButton; [SerializeField] private Button aiMoveFullTurnButton; [SerializeField] private Toggle autoPlayAIToggle; [Header(\"Misc buttons\")] [SerializeField] private Button settingsButton; [SerializeField] private Button homeButton; [Header(\"Choice Panels\")] [SerializeField] private CardChoicePanelController cardChoicePanel; [SerializeField] private EffectChoicePanelController effectChoicePanel; [SerializeField] private PatronSelectionPanel patronSelectionPanel; [Header(\"Normal panels\")] [SerializeField] private CardLookupPanelController cardLookupPanel; [SerializeField] private CombosPanelController combosPanel; [SerializeField] private BotLogPanelController botLogPanel; [SerializeField] private GameObject settingsPanel; [Header(\"Text objects\")] [SerializeField] private GameObject YourTurnImage; [SerializeField] public EffectPopupManager EffectPopupManager; [Header(\"Patrons\")] [SerializeField] private GameObject PatronTooltipPanel; [SerializeField] private TextMeshProUGUI PatronTooltipTitle; [SerializeField] private TextMeshProUGUI PatronTooltipText; [Header(\"End game\")] [SerializeField] private EndGameController endGameController; [Header(\"Tooltips\")] [SerializeField] private CardTooltip cardTooltip; [SerializeField] private RightClickHintController tooltipTip; private Coroutine fadeCoroutine;"
]
},
{
"fileName": "CardUtils.cs",
"path": "Assets\\Scripts\\Utilities\\CardUtils.cs",
"namespaceName": "",
"kind": "class",
"typeName": "CardUtils",
"methods": [],
"fields": []
},
{
"fileName": "EffectPopupManager.cs",
"path": "Assets\\Scripts\\Visuals\\EffectPopupManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "EffectPopupManager",
"methods": [
"public void EnqueuePopupBatch(List<string> texts, ZoneSide side)",
"private IEnumerator ProcessQueue()"
],
"fields": [
"[SerializeField] private GameObject popupPrefab; [SerializeField] private float popupLifetime = 1.3f; [SerializeField] private float delayBetweenBatches = 0.2f; [SerializeField] private float delayBetweenPopup = 0.01f; [SerializeField] private Transform playerContainer; [SerializeField] private Transform enemyContainer; private bool _isShowing = false;"
]
},
{
"fileName": "PopupEffect.cs",
"path": "Assets\\Scripts\\Visuals\\PopupEffect.cs",
"namespaceName": "",
"kind": "class",
"typeName": "PopupEffect",
"methods": [
"[SerializeField] private TextMeshProUGUI popupText; [SerializeField] private CanvasGroup canvasGroup; public void Setup(string text)",
"public IEnumerator PlayQueuedAnimation(float lifetime)"
],
"fields": []
},
{
"fileName": "VisualEffectManager.cs",
"path": "Assets\\Scripts\\Visuals\\VisualEffectManager.cs",
"namespaceName": "",
"kind": "class",
"typeName": "VisualEffectsManager",
"methods": [
"[SerializeField] private GameObject powerProjectilePrefab; [SerializeField] private Transform powerOriginPointPlayer1; [SerializeField] private Transform powerOriginPointPlayer2; private void Awake()",
"public void PlayPowerAttackEffect(Vector3 targetPosition, ZoneSide side, Action? onComplete = null)",
"public void PlayHealingEffect(GameObject agentObj, ZoneSide side, Action? onComplete = null)"
],
"fields": []
},
{
"fileName": "AgentTierList.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\AgentTierList.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "AgentTier",
"methods": [],
"fields": []
},
{
"fileName": "BestMCTS3.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\BestMCTS3.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "MCTSNode",
"methods": [
"public double Simulate(MCTSNode node, GameStrategy strategy, SeededRandom rng, ref int moveCount)"
],
"fields": [
"public SeededGameState gameState;",
"public double score = 0;",
"public int visits = 0;",
"public bool full = false;",
"public bool endTurn;"
]
},
{
"fileName": "BestMCTS3.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\BestMCTS3.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "BestMCTS3",
"methods": [
"static public bool CheckIfSameCards(List<UniqueCard> l, List<UniqueCard> r)",
"static public bool CheckIfSameEffects(List<UniqueEffect> e1, List<UniqueEffect> e2)"
],
"fields": []
},
{
"fileName": "BestMCTS3.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\BestMCTS3.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "PairOnlySecond",
"methods": [],
"fields": []
},
{
"fileName": "BestMCTS3.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\BestMCTS3.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "MoveComparer",
"methods": [],
"fields": []
},
{
"fileName": "GameStrategy.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\GameStrategy.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "GameStrategy",
"methods": [
"public double Heuristic(SeededGameState gameState)",
"public double CardEvaluation(UniqueCard card, SeededGameState gameState)",
"public double enemyCardEvaluation(UniqueCard card, SeededGameState gameState)"
],
"fields": []
},
{
"fileName": "GameStrategy.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\GameStrategy.cs",
"namespaceName": "Bots",
"kind": "enum",
"typeName": "GamePhase",
"methods": [],
"fields": []
},
{
"fileName": "GameStrategy.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\GameStrategy.cs",
"namespaceName": "Bots",
"kind": "enum",
"typeName": "Param",
"methods": [],
"fields": []
},
{
"fileName": "HandTierList.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\HandTierList.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "HandTierList",
"methods": [],
"fields": []
},
{
"fileName": "InstantPlayCards.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\InstantPlayCards.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "InstantPlayCards",
"methods": [],
"fields": []
},
{
"fileName": "PatronTierList.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\PatronTierList.cs",
"namespaceName": "Bots",
"kind": "struct",
"typeName": "PatronTier",
"methods": [],
"fields": [
"public int Favoured;",
"public int Neutral;",
"public int Unfavoured;"
]
},
{
"fileName": "PatronTierList.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\PatronTierList.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "PatronTierList",
"methods": [],
"fields": []
},
{
"fileName": "TierList.cs",
"path": "Assets\\Scripts\\AI\\BestMCTS3\\TierList.cs",
"namespaceName": "Bots",
"kind": "class",
"typeName": "GPCardTierList",
"methods": [],
"fields": []
},
{
"fileName": "Cardtierlist.cs",
"path": "Assets\\Scripts\\AI\\CustomBots\\Cardtierlist.cs",
"namespaceName": "UnityBots",
"kind": "enum",
"typeName": "TierEnum",
"methods": [],
"fields": []
},
{
"fileName": "Cardtierlist.cs",
"path": "Assets\\Scripts\\AI\\CustomBots\\Cardtierlist.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "CardTierList",
"methods": [],
"fields": []
},
{
"fileName": "ClassDefinitions.cs",
"path": "Assets\\Scripts\\AI\\gRPC\\ClassDefinitions.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "PlayRequest",
"methods": [],
"fields": []
},
{
"fileName": "ClassDefinitions.cs",
"path": "Assets\\Scripts\\AI\\gRPC\\ClassDefinitions.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "PlayResponse",
"methods": [],
"fields": []
},
{
"fileName": "ClassDefinitions.cs",
"path": "Assets\\Scripts\\AI\\gRPC\\ClassDefinitions.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "SelectPatronRequest",
"methods": [],
"fields": []
},
{
"fileName": "ClassDefinitions.cs",
"path": "Assets\\Scripts\\AI\\gRPC\\ClassDefinitions.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "SelectPatronResponse",
"methods": [],
"fields": []
},
{
"fileName": "ClassDefinitions.cs",
"path": "Assets\\Scripts\\AI\\gRPC\\ClassDefinitions.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "GameEndRequest",
"methods": [],
"fields": []
},
{
"fileName": "ClassDefinitions.cs",
"path": "Assets\\Scripts\\AI\\gRPC\\ClassDefinitions.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "GenericCommand",
"methods": [],
"fields": []
},
{
"fileName": "ClassDefinitions.cs",
"path": "Assets\\Scripts\\AI\\gRPC\\ClassDefinitions.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "RegisterResponse",
"methods": [],
"fields": []
},
{
"fileName": "ClassDefinitions.cs",
"path": "Assets\\Scripts\\AI\\gRPC\\ClassDefinitions.cs",
"namespaceName": "UnityBots",
"kind": "class",
"typeName": "MoveDto",