Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
941 commits
Select commit Hold shift + click to select a range
282039b
Added SetEdition to format toggle on UI.
Baledin Oct 23, 2025
54b62b7
Added SetEdition to squad loading. Limited format/edition changing to…
Baledin Oct 23, 2025
34213a7
Cleanup
Baledin Oct 23, 2025
e399970
Rebel B-Wing pilot updates
Baledin Oct 23, 2025
6ed5099
Rebel ARC 170 pilot point updates
Baledin Oct 23, 2025
e000be8
Rebel Attack Shuttle pilot point updates
Baledin Oct 23, 2025
a07dcdb
Rebel Auzituck Gunship pilot point updates
Baledin Oct 23, 2025
2553274
Rebel B-Wing pilot point updates
Baledin Oct 23, 2025
bc4b76c
Rebel K-Wing pilot point updates
Baledin Oct 23, 2025
6d32db4
Rebel E-Wing pilot point updates
Baledin Oct 23, 2025
9f7007c
Rebel Fang Fighter pilot point updates
Baledin Oct 23, 2025
27f4e58
Rebel Gauntlet Fighter pilot point updates
Baledin Oct 23, 2025
2ecc627
Rebel HWK-290 Light Freighter pilot point updates
Baledin Oct 23, 2025
50067d0
Rebel Modified YT-1300 Light Freighter pilot point updates
Baledin Oct 23, 2025
9544759
Rebel A-Wing pilot point updates
Baledin Oct 23, 2025
619f6fa
Rebel Sheathipede Class Shuttle pilot point updates
Baledin Oct 23, 2025
5c0b17b
Clean up unnecessary semicolon
philpursglove Oct 23, 2025
a8f9523
Add XWA class for CaptainJonusTBE
philpursglove Oct 23, 2025
3511a22
Set Standard/Extended legality on the non-XWA classes
philpursglove Oct 23, 2025
a9409a4
Rebel X-Wing pilot point updates
Baledin Oct 23, 2025
a863272
Set Standard/Extended legality on the non-XWA class
philpursglove Oct 23, 2025
e534a98
Added overrides for Name and NameShort
Baledin Oct 23, 2025
0489022
Changed Private methods to Protected to allow access from derived cla…
Baledin Oct 23, 2025
869ed0e
Merge pull request #243 from philpursglove/add-missing-Separatist-xwa…
Baledin Oct 23, 2025
0640d47
Merge pull request #241 from philpursglove/add-missing-imperial-xwa
Baledin Oct 23, 2025
1cfe742
Rebel TIE/ln Fighter pilot point updates
Baledin Oct 23, 2025
f47674e
Rebel U-Wing pilot point updates
Baledin Oct 23, 2025
84ccf48
Rebel VCX-100 Light Freighter pilot point updates
Baledin Oct 23, 2025
44358e1
Rebel YT-2400 Light Freighter pilot point updates
Baledin Oct 23, 2025
3559242
Rebel Z-95A Headhunter pilot point updates
Baledin Oct 23, 2025
7baa309
Restore torpedo to the AMG Drea and put separate upgrade list on XWA
philpursglove Oct 24, 2025
87ce81a
Reorder Amaxine upgrades
philpursglove Oct 24, 2025
f3fb7c5
Fix Jinata upgrades list
philpursglove Oct 24, 2025
dda9c4c
Reorder L3 upgrades
philpursglove Oct 24, 2025
dddfb3c
Reorder Escape Craft upgrades
philpursglove Oct 24, 2025
5f80c97
Fix Dengar cost
philpursglove Oct 24, 2025
f9bdc98
Reorder upgrades
philpursglove Oct 24, 2025
b55918c
Reorder upgrades
philpursglove Oct 24, 2025
a0cfdae
Reorder upgrades
philpursglove Oct 24, 2025
010409f
Reorder upgrades
philpursglove Oct 24, 2025
1e0bb15
Reorder upgrades
philpursglove Oct 24, 2025
a13a354
Reorder upgrades
philpursglove Oct 24, 2025
8d75ef2
Fix indenting
philpursglove Oct 24, 2025
6cf3e9e
Reorder upgrades
philpursglove Oct 24, 2025
4be7a5d
Reorder upgrades
philpursglove Oct 24, 2025
e9cb424
Fix Lyttan Dree cost & loadout
philpursglove Oct 24, 2025
01fddb5
Reorder upgrades
philpursglove Oct 24, 2025
a0ba3c8
Fix Capt Jonus upgrades
philpursglove Oct 24, 2025
8524e19
Fix Striker upgrades
philpursglove Oct 24, 2025
0a81fd6
Copy Ubbel range change to resolve merge conflict
philpursglove Oct 24, 2025
a5bea9c
Fix attack ability range condition
philpursglove Oct 24, 2025
898ea26
Fixed point and upgrades for XWA
Baledin Oct 24, 2025
276c5c5
Merge pull request #251 from Baledin/Rebel-XWA-Point-Update
Baledin Oct 24, 2025
cc9e639
Merge pull request #248 from philpursglove/dont-allow-grinq-ability-a…
Baledin Oct 24, 2025
2e54d55
Merge pull request #247 from philpursglove/empire-points-update
Baledin Oct 25, 2025
a4fd336
Merge pull request #244 from philpursglove/scum-points-update
Baledin Oct 25, 2025
58915da
FO TIE/ba Interceptor pilot point updates
Baledin Oct 25, 2025
ee8df72
FO TIE/fo Fighter pilot point updates
Baledin Oct 25, 2025
7330f0b
FO TIE/se Bomber pilot point updates
Baledin Oct 25, 2025
b3e9f50
FO TIE/sf Fighter pilot point updates
Baledin Oct 25, 2025
a2be179
FO TIE/vn Silencer pilot point updates
Baledin Oct 25, 2025
7a003f8
FO TIE/wi Whisper pilot point updates
Baledin Oct 25, 2025
8f606f3
FO Upsilon Class Command Shuttle pilot point updates
Baledin Oct 25, 2025
de683e6
FO Xi-Class Light Shuttle pilot point updates
Baledin Oct 25, 2025
0d4deb4
Merge pull request #252 from Baledin/first-order-points-update
Baledin Oct 25, 2025
da4b97c
Astromechs
philpursglove Oct 25, 2025
ff24fb6
Crew
philpursglove Oct 25, 2025
3fa7e1e
Gunners
philpursglove Oct 25, 2025
0eac700
Selfless
philpursglove Oct 25, 2025
4ca44ea
Ruthless
philpursglove Oct 25, 2025
e0d51d9
BT-1
philpursglove Oct 25, 2025
39a763a
Crew
philpursglove Oct 25, 2025
a9e7871
Burnout thrusters
philpursglove Oct 25, 2025
6f43ae2
Greedo
philpursglove Oct 25, 2025
2420890
Crew
philpursglove Oct 25, 2025
170add1
Consistency
philpursglove Oct 25, 2025
0c23738
Astromech
philpursglove Oct 25, 2025
c1bc620
Crew
philpursglove Oct 25, 2025
3b689ca
Consistency
philpursglove Oct 25, 2025
b7a2f32
Crew
philpursglove Oct 25, 2025
980bab5
Gunners
philpursglove Oct 25, 2025
fd2d0e8
Deuterium Power Cells
philpursglove Oct 25, 2025
6ce132e
R2-A6
philpursglove Oct 25, 2025
00d9404
Crew
philpursglove Oct 25, 2025
50edf93
Gunners
philpursglove Oct 25, 2025
d1ad77f
Synced console
philpursglove Oct 25, 2025
dab6c2b
Dedicated
philpursglove Oct 25, 2025
f3ebfe6
Consistency
philpursglove Oct 25, 2025
75fbb0b
Open up Limited to be updated
philpursglove Oct 25, 2025
120efad
Grievous
philpursglove Oct 25, 2025
a3b884a
DRK Probe Droids
philpursglove Oct 25, 2025
e0fc144
Energy shell charges
philpursglove Oct 25, 2025
40e3266
Independent calculations
philpursglove Oct 25, 2025
a577423
Tactical relays
philpursglove Oct 25, 2025
2017918
Ensnare
philpursglove Oct 25, 2025
0783b1a
Consistency
philpursglove Oct 25, 2025
64afb00
Astromechs
philpursglove Oct 25, 2025
ba78bce
Cannons
philpursglove Oct 25, 2025
9d82843
Crew
philpursglove Oct 25, 2025
77e7105
Devices
philpursglove Oct 25, 2025
e4f9010
Force
philpursglove Oct 25, 2025
c403168
Gunners
philpursglove Oct 25, 2025
632c7e2
Illicits
philpursglove Oct 25, 2025
6e05985
Missiles
philpursglove Oct 25, 2025
eb2c6f9
Mods
philpursglove Oct 25, 2025
a227b1e
TrajSim
philpursglove Oct 25, 2025
ff43fd5
Talents
philpursglove Oct 25, 2025
d222f0a
Primed thrusters
philpursglove Oct 25, 2025
bfa19a4
Torpedoes
philpursglove Oct 25, 2025
88d46c3
Consistecy
philpursglove Oct 25, 2025
fbfc8ca
ARC-170
philpursglove Oct 26, 2025
193b463
Republic Y-wings
philpursglove Oct 26, 2025
43bd422
Z-95s
philpursglove Oct 26, 2025
5684dae
Delta 7s
philpursglove Oct 26, 2025
99d400a
Delta 7Bs
philpursglove Oct 26, 2025
31d3b17
Eta-2s
philpursglove Oct 26, 2025
6b93595
Gauntlets
philpursglove Oct 26, 2025
2f7047b
Laats
philpursglove Oct 26, 2025
683b6a0
N-1s
philpursglove Oct 26, 2025
648ecf8
Rename Gavyn's filename
philpursglove Oct 26, 2025
6e8a544
V-wings
philpursglove Oct 26, 2025
e4b8d1d
Torrents
philpursglove Oct 26, 2025
6d8454a
Belbullabs
philpursglove Oct 26, 2025
595f7a2
Tri FIghters
philpursglove Oct 26, 2025
836fb6b
Firesprays
philpursglove Oct 26, 2025
722f116
Gauntlets
philpursglove Oct 26, 2025
0751274
Roombas
philpursglove Oct 26, 2025
22e73b0
Hyenas
philpursglove Oct 26, 2025
01d649a
Nantexes? Nantices?
philpursglove Oct 26, 2025
4710292
Rogues
philpursglove Oct 26, 2025
571a642
Infiltrators
philpursglove Oct 26, 2025
4d7367f
Vultures
philpursglove Oct 26, 2025
3c2ac1a
Fix Magnaguard
philpursglove Oct 26, 2025
fa0cfb7
Update Assets/Scripts/Model/Content/SecondEdition/Pilots/Republic/V19…
Baledin Oct 26, 2025
818fb00
Update Assets/Scripts/Model/Content/SecondEdition/Pilots/Republic/ARC…
Baledin Oct 26, 2025
47ac08e
Update Assets/Scripts/Model/Content/SecondEdition/Pilots/Republic/ARC…
Baledin Oct 26, 2025
164794b
Update Assets/Scripts/Model/Content/SecondEdition/Pilots/Republic/Del…
Baledin Oct 26, 2025
1e7632c
Update Saesee Tiin
philpursglove Oct 26, 2025
bf6a573
Merge branch 'republic-points-updates' of https://github.com/philpurs…
philpursglove Oct 26, 2025
03674ae
Fix Roomba loadout values
philpursglove Oct 26, 2025
538f693
Update Sabine cost
philpursglove Oct 26, 2025
3eda089
Merge pull request #260 from philpursglove/republic-points-updates
Baledin Oct 26, 2025
90ef54c
Merge pull request #254 from philpursglove/imperials-upgrades-points-…
Baledin Oct 26, 2025
d6e4b60
Merge pull request #253 from philpursglove/rebel-upgrades-points-update
Baledin Oct 26, 2025
8c19a9f
Don't allow Predictive Shot at Range 0
philpursglove Oct 26, 2025
a98ff86
Merge pull request #256 from philpursglove/resistance-upgrades-points…
Baledin Oct 26, 2025
f542848
Merge pull request #257 from philpursglove/firstorder-upgrades-points…
Baledin Oct 27, 2025
93b5540
Merge pull request #250 from Baledin/Add-XWA-Edition
Baledin Oct 27, 2025
a146783
Revert Name/Shortname to SecondEdition to maintain compatibility with…
Baledin Oct 27, 2025
95f3450
Merge pull request #262 from Baledin/Add-XWA-Edition
Baledin Oct 27, 2025
3417d93
Added Wartime Loadout version of the Resistance Y-Wing; Updated ShipC…
Baledin Oct 27, 2025
167da3f
Added BTA-NR2-W Y-Wing pilots
Baledin Oct 27, 2025
be01d1a
Cleanup
Baledin Oct 27, 2025
5580f78
B-Wing pilot point updates
Baledin Oct 27, 2025
18583ba
Fireball pilot point updates
Baledin Oct 27, 2025
1b31380
MG-100 pilot point updates
Baledin Oct 27, 2025
0bf73fe
RZ-2 A-wing point updates
Baledin Oct 27, 2025
0c7cbf7
Resistance Transport pilot point updates
Baledin Oct 27, 2025
1aed4be
Resistance Transport Pod pilot point updates
Baledin Oct 27, 2025
d48e2b5
Add XWA class for L337
philpursglove Oct 27, 2025
0b84a54
Update Discord cost
philpursglove Oct 27, 2025
6560c0c
Update Ensnare cost
philpursglove Oct 27, 2025
287cc44
Fix Sense
philpursglove Oct 27, 2025
ff5ac97
Update costs
philpursglove Oct 27, 2025
8f3082c
Add helper for adding extra restrictions
philpursglove Oct 27, 2025
1ae4a4e
Add base size restriction
philpursglove Oct 27, 2025
1712b74
Merge pull request #255 from philpursglove/scum-upgrades-points-update
Baledin Oct 27, 2025
7ca73e4
Merge pull request #258 from philpursglove/republic-upgrades-points-u…
Baledin Oct 27, 2025
c13fd1b
Merge pull request #259 from philpursglove/generic-upgrades-points-up…
Baledin Oct 27, 2025
a2c2f23
Resistance Scavenged YT-1300 pilot point updates
Baledin Oct 27, 2025
37ebb6c
Resistance T-70 X-Wing pilot point updates
Baledin Oct 27, 2025
7479729
Corrected upgrade bar for BTA-NR2-W Y-Wing pilot Wilsa Teshlo
Baledin Oct 27, 2025
72b14b2
Merge pull request #263 from philpursglove/prevent-predictive-shot-at…
Baledin Oct 27, 2025
dd11494
Corrected Scavenged YT-1300 Chewbacca upgrade bar
Baledin Oct 27, 2025
84611d3
Merge pull request #264 from Baledin/resistance-point-update
Baledin Oct 27, 2025
ec1af13
Merge pull request #261 from philpursglove/separatist-points-updates
Baledin Oct 27, 2025
28767a4
Updated version numbers
Baledin Oct 27, 2025
cfb1448
Corrected BTA-NR2-W Y-Wing to include Configuration slot and default …
Baledin Oct 27, 2025
f40e828
Merge pull request #265 from Baledin/resistance-point-update
Baledin Oct 27, 2025
53e17b3
v2.5.20251026.01 Release
Baledin Oct 27, 2025
0b64958
Updated Wartime Loadout pilots with new ImageUrl and canonical names …
Baledin Oct 28, 2025
5025fed
Removed Config slot and Wartime Loadout upgrade from BTA-NR2-W Y-Wing…
Baledin Oct 28, 2025
784b994
Code cleanup
Baledin Oct 28, 2025
6d23395
Update pilot/upgrade image URL methods with XWA specific image root
Baledin Oct 28, 2025
aa07da9
added null check to GetPoints; cleanup/standardization
Baledin Oct 28, 2025
90ef1ab
Added CheckOverlap before applying damage to ensure only current targ…
Baledin Oct 28, 2025
186a786
Merge pull request #267 from Baledin/Wartime-loadout-fixes
Baledin Oct 28, 2025
30fe323
Merge pull request #268 from Baledin/XWA-edition-updates
Baledin Oct 28, 2025
28a5ad0
Merge pull request #269 from Baledin/buzz-droid-swarm-damage-fix
Baledin Oct 28, 2025
ce23edc
Merge pull request #270 from Baledin/get-points-null-reference-check
Baledin Oct 28, 2025
2a7b273
Revert "GetPoints Null Ref Check"
Baledin Oct 28, 2025
0a73ce6
Merge pull request #271 from Baledin/revert-270-get-points-null-refer…
Baledin Oct 28, 2025
35faaff
Merge pull request #272 from Baledin/get-points-null-reference-check
Baledin Oct 28, 2025
ff4195a
Updated version number
Baledin Oct 31, 2025
74b1675
Update README.md
Baledin Nov 1, 2025
6b7450d
Update README.md
Baledin Nov 1, 2025
176aed4
v2.5.20251026.02 Wartime Bug Fix
Baledin Nov 3, 2025
0a02adb
Update damage card image links
philpursglove Nov 3, 2025
6935c19
Update crit token tooltip links
philpursglove Nov 3, 2025
b5146b0
Use hi-res card scans
philpursglove Nov 4, 2025
96126e5
Typo
philpursglove Nov 4, 2025
0e25aed
Merge pull request #282 from philpursglove/use-infinitearenas-damage-…
Baledin Nov 4, 2025
0eaf4aa
Swap out imgur images for infinitearenas
philpursglove Nov 4, 2025
61299b4
Corrected Wartime Loadout action bar
Baledin Nov 6, 2025
2cf3d2c
Merge pull request #284 from Baledin/Correct-Wartime-Action-bar
Baledin Nov 6, 2025
073226b
Swap out various github urls for infinitearenas
philpursglove Nov 6, 2025
9452ecc
Swap out FFG urls for infinitearenas
philpursglove Nov 6, 2025
c1cfe63
Swap out wikia urls for infinitearenas
philpursglove Nov 6, 2025
c325400
Merge pull request #283 from philpursglove/use-infinitearenas-conditi…
Baledin Nov 6, 2025
83daf75
Set GarSaxon to check sectors instead IsShipInArcByType which uses th…
Baledin Nov 7, 2025
7a378e2
Revert "Set GarSaxon to check sectors instead IsShipInArcByType which…
Baledin Nov 7, 2025
ab5d419
Set GarSaxon to check sectors instead IsShipInArcByType which uses th…
Baledin Nov 7, 2025
a440240
Added Arc check to pre-check.
Baledin Nov 7, 2025
b6d7e2a
Reverted AbilityCheck as the previous version correctly checked if ta…
Baledin Nov 7, 2025
db53915
Gar Saxon's ability to remove red/orange tokens for an extra die now …
Baledin Nov 7, 2025
e6e65d7
Merge pull request #285 from Baledin/136-gar-saxon-gunner-checking-wr…
Baledin Nov 7, 2025
778d879
Fixed Vonreg triggers.
Baledin Nov 7, 2025
b6bfc26
Moved ChangeActiveShip to before FinishTrigger, allowing the previous…
Baledin Nov 7, 2025
d5a1ebb
Revert "Moved ChangeActiveShip to before FinishTrigger, allowing the …
Baledin Nov 7, 2025
e810ca2
Moved ChangeActiveShip to before FinishTrigger, allowing the previous…
Baledin Nov 7, 2025
a7d3f21
Moved It's a Trap to own upgrade.
Baledin Nov 7, 2025
d4771a0
Moved It's a Trap to own upgrade.
Baledin Nov 7, 2025
d686e8f
Merge branch 'Its-A-Trap-fixes' of https://github.com/Baledin/FlyCasu…
Baledin Nov 7, 2025
e80ba04
Moved Gyroscopic Cockpit to B-Wing class. Code cleanup/standardization
Baledin Nov 7, 2025
6514768
Corrected Usings for Its A Trap
Baledin Nov 7, 2025
69417a2
Added check to dice modification to ensure roll is on defence
Baledin Nov 7, 2025
fbb061b
Correct Battle Over Endor B-Wing pilot action bars, adding red reload…
Baledin Nov 7, 2025
8aafd9d
Merge pull request #289 from Baledin/BoE-B-wing-action-bar-fixes
Baledin Nov 7, 2025
1055be1
Merge pull request #288 from Baledin/Its-A-Trap-fixes
Baledin Nov 7, 2025
2b82e72
Merge pull request #287 from Baledin/kalani-target-actions-fix
Baledin Nov 7, 2025
3ed12fc
Merge pull request #286 from Baledin/154-issues-with-major-vonregs-sy…
Baledin Nov 7, 2025
f4ab2d6
Rewrote Adaptive Ailerons to use Boost instead of Maneuver; File clea…
Baledin Nov 11, 2025
43a1f13
Removed AdvancedAdaptiveAilerons -- unused. File cleanup
Baledin Nov 13, 2025
e54f1c2
Merge pull request #290 from Baledin/Adaptive-Ailerons-errata-fix
Baledin Nov 13, 2025
0725c7a
Defender Darth Vader
philpursglove Dec 9, 2025
5a90713
Fenn Rau Rebel and Scum
philpursglove Dec 9, 2025
b9d697c
Obi Wan Delta7 and 7B
philpursglove Dec 9, 2025
8d98252
Padme
philpursglove Dec 9, 2025
36bbbb2
Ric Olie
philpursglove Dec 9, 2025
7fa7c37
Klick
philpursglove Dec 9, 2025
21ba3fb
Resistance Han Solo
philpursglove Dec 9, 2025
95c7726
Boba Fett
philpursglove Dec 9, 2025
8b12345
Mando
philpursglove Dec 9, 2025
9065e5e
Grievous
philpursglove Dec 9, 2025
ab5011f
The Child
philpursglove Dec 9, 2025
970ced6
Move Rebel Fenn Fang back to 13
philpursglove Dec 9, 2025
b8b1a9a
Rebel Fenn Sheathipede
philpursglove Dec 9, 2025
7f680a5
Merge pull request #293 from philpursglove/dec25-points-update
Baledin Dec 10, 2025
2e653f0
Update version
Baledin Dec 10, 2025
9320e37
Merge pull request #294 from Baledin/development
Baledin Dec 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Fly Casual Release Version**
Which version did the bug occur in (use version from Main Menu, please do not say Latest or similar)?

**Online Game Mode**
Yes/No

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Platform/Device (be as specific as possible):**
- OS: [e.g. Windows, Mac, Android]
- Version [e.g. Windows 10, iOS22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ obj
Temp
MAC.app
Logs
**/TextMesh Pro/
**/TextMesh Pro.meta

# Visual Studio 2015 cache directory
/.vs/
Expand All @@ -81,3 +83,5 @@ ExportedObj/

/.collabignore
/UserSettings
Assets/Editor/
Assets/Editor.meta
8 changes: 8 additions & 0 deletions Assets/Animations/Gauntlet.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Animations/Gauntlet/WingPivot_Close.anim
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/Animations/Gauntlet/WingPivot_Close.anim.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Animations/Gauntlet/WingPivot_Open.anim
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/Animations/Gauntlet/WingPivot_Open.anim.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Fonts/Rebellion SDF.asset
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/Fonts/Rebellion SDF.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

146 changes: 107 additions & 39 deletions Assets/ImportedAssets/Mirror/Authenticators/BasicAuthenticator.cs
Original file line number Diff line number Diff line change
@@ -1,67 +1,85 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Mirror.Authenticators
{
[AddComponentMenu("Network/Authenticators/BasicAuthenticator")]
[AddComponentMenu("Network/ Authenticators/Basic Authenticator")]
[HelpURL("https://mirror-networking.gitbook.io/docs/components/network-authenticators/basic-authenticator")]
public class BasicAuthenticator : NetworkAuthenticator
{
static readonly ILogger logger = LogFactory.GetLogger(typeof(BasicAuthenticator));
[Header("Server Credentials")]
public string serverUsername;
public string serverPassword;

[Header("Custom Properties")]

// set these in the inspector
[Header("Client Credentials")]
public string username;
public string password;

public class AuthRequestMessage : MessageBase
readonly HashSet<NetworkConnection> connectionsPendingDisconnect = new HashSet<NetworkConnection>();

#region Messages

public struct AuthRequestMessage : NetworkMessage
{
// use whatever credentials make sense for your game
// for example, you might want to pass the accessToken if using oauth
public string authUsername;
public string authPassword;
}

public class AuthResponseMessage : MessageBase
public struct AuthResponseMessage : NetworkMessage
{
public byte code;
public string message;
}

#endregion

#region Server

/// <summary>
/// Called on server from StartServer to initialize the Authenticator
/// <para>Server message handlers should be registered in this method.</para>
/// </summary>
public override void OnStartServer()
{
// register a handler for the authentication request we expect from client
NetworkServer.RegisterHandler<AuthRequestMessage>(OnAuthRequestMessage, false);
}

public override void OnStartClient()
/// <summary>
/// Called on server from StopServer to reset the Authenticator
/// <para>Server message handlers should be unregistered in this method.</para>
/// </summary>
public override void OnStopServer()
{
// register a handler for the authentication response we expect from server
NetworkClient.RegisterHandler<AuthResponseMessage>(OnAuthResponseMessage, false);
// unregister the handler for the authentication request
NetworkServer.UnregisterHandler<AuthRequestMessage>();
}

public override void OnServerAuthenticate(NetworkConnection conn)
/// <summary>
/// Called on server from OnServerConnectInternal when a client needs to authenticate
/// </summary>
/// <param name="conn">Connection to client.</param>
public override void OnServerAuthenticate(NetworkConnectionToClient conn)
{
// do nothing...wait for AuthRequestMessage from client
}

public override void OnClientAuthenticate(NetworkConnection conn)
/// <summary>
/// Called on server when the client's AuthRequestMessage arrives
/// </summary>
/// <param name="conn">Connection to client.</param>
/// <param name="msg">The message payload</param>
public void OnAuthRequestMessage(NetworkConnectionToClient conn, AuthRequestMessage msg)
{
AuthRequestMessage authRequestMessage = new AuthRequestMessage
{
authUsername = username,
authPassword = password
};

conn.Send(authRequestMessage);
}
//Debug.Log($"Authentication Request: {msg.authUsername} {msg.authPassword}");

public void OnAuthRequestMessage(NetworkConnection conn, AuthRequestMessage msg)
{
if (logger.LogEnabled()) logger.LogFormat(LogType.Log, "Authentication Request: {0} {1}", msg.authUsername, msg.authPassword);
if (connectionsPendingDisconnect.Contains(conn)) return;

// check the credentials by calling your web server, database table, playfab api, or any method appropriate.
if (msg.authUsername == username && msg.authPassword == password)
if (msg.authUsername == serverUsername && msg.authPassword == serverPassword)
{
// create and send msg to client so it knows to proceed
AuthResponseMessage authResponseMessage = new AuthResponseMessage
Expand All @@ -72,11 +90,13 @@ public void OnAuthRequestMessage(NetworkConnection conn, AuthRequestMessage msg)

conn.Send(authResponseMessage);

// Invoke the event to complete a successful authentication
OnServerAuthenticated.Invoke(conn);
// Accept the successful authentication
ServerAccept(conn);
}
else
{
connectionsPendingDisconnect.Add(conn);

// create and send msg to client so it knows to disconnect
AuthResponseMessage authResponseMessage = new AuthResponseMessage
{
Expand All @@ -90,35 +110,83 @@ public void OnAuthRequestMessage(NetworkConnection conn, AuthRequestMessage msg)
conn.isAuthenticated = false;

// disconnect the client after 1 second so that response message gets delivered
StartCoroutine(DelayedDisconnect(conn, 1));
StartCoroutine(DelayedDisconnect(conn, 1f));
}
}

public IEnumerator DelayedDisconnect(NetworkConnection conn, float waitTime)
IEnumerator DelayedDisconnect(NetworkConnectionToClient conn, float waitTime)
{
yield return new WaitForSeconds(waitTime);
conn.Disconnect();

// Reject the unsuccessful authentication
ServerReject(conn);

yield return null;

// remove conn from pending connections
connectionsPendingDisconnect.Remove(conn);
}

public void OnAuthResponseMessage(NetworkConnection conn, AuthResponseMessage msg)
#endregion

#region Client

/// <summary>
/// Called on client from StartClient to initialize the Authenticator
/// <para>Client message handlers should be registered in this method.</para>
/// </summary>
public override void OnStartClient()
{
// register a handler for the authentication response we expect from server
NetworkClient.RegisterHandler<AuthResponseMessage>(OnAuthResponseMessage, false);
}

/// <summary>
/// Called on client from StopClient to reset the Authenticator
/// <para>Client message handlers should be unregistered in this method.</para>
/// </summary>
public override void OnStopClient()
{
// unregister the handler for the authentication response
NetworkClient.UnregisterHandler<AuthResponseMessage>();
}

/// <summary>
/// Called on client from OnClientConnectInternal when a client needs to authenticate
/// </summary>
public override void OnClientAuthenticate()
{
AuthRequestMessage authRequestMessage = new AuthRequestMessage
{
authUsername = username,
authPassword = password
};

NetworkClient.Send(authRequestMessage);
}

/// <summary>
/// Called on client when the server's AuthResponseMessage arrives
/// </summary>
/// <param name="msg">The message payload</param>
public void OnAuthResponseMessage(AuthResponseMessage msg)
{
if (msg.code == 100)
{
if (logger.LogEnabled()) logger.LogFormat(LogType.Log, "Authentication Response: {0}", msg.message);
//Debug.Log($"Authentication Response: {msg.message}");

// Invoke the event to complete a successful authentication
OnClientAuthenticated.Invoke(conn);
// Authentication has been accepted
ClientAccept();
}
else
{
logger.LogFormat(LogType.Error, "Authentication Response: {0}", msg.message);
Debug.LogError($"Authentication Response: {msg.message}");

// Set this on the client for local reference
conn.isAuthenticated = false;

// disconnect the client
conn.Disconnect();
// Authentication has been rejected
ClientReject();
}
}

#endregion
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading