Added North America floor map.

This commit is contained in:
2025-07-24 21:13:55 -04:00
parent 9b08bcc6e9
commit 613a11c7ef
41 changed files with 44376 additions and 406 deletions
+51 -3
View File
@@ -44,7 +44,7 @@ MonoBehaviour:
Data:
- Name:
Entry: 12
Data: 5
Data: 6
- Name:
Entry: 7
Data:
@@ -296,13 +296,13 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
Data: _ChosenCities
Data: _ChosenRegions
- Name: $v
Entry: 7
Data: 19|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: _ChosenCities
Data: _ChosenRegions
- Name: <UserType>k__BackingField
Entry: 9
Data: 17
@@ -339,6 +339,54 @@ MonoBehaviour:
- Name:
Entry: 8
Data:
- Name:
Entry: 7
Data:
- Name: $k
Entry: 1
Data: _ChosenCities
- Name: $v
Entry: 7
Data: 21|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: _ChosenCities
- Name: <UserType>k__BackingField
Entry: 9
Data: 17
- Name: <SystemType>k__BackingField
Entry: 9
Data: 17
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 6
Data:
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 22|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
- Name:
Entry: 13
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 13
Data:
+9 -4
View File
@@ -15,6 +15,7 @@ public class FloorMap : UdonSharpBehaviour
[UdonSynced, FieldChangeCallback(nameof(RandomisedCountriesAndCities))] private int[] _RandomisedCountriesAndCities;
private string[] _ChosenCountries = new string[MAX_SELECTED_COUNTRIES];
private string[] _ChosenRegions = new string[MAX_SELECTED_COUNTRIES];
private string[] _ChosenCities = new string[MAX_SELECTED_COUNTRIES];
public const int MAX_SELECTED_COUNTRIES = 13;
@@ -29,8 +30,6 @@ public class FloorMap : UdonSharpBehaviour
public void RandomiseCountries()
{
Debug.Log("[FloorMap] Randomising countries...");
for (int i = 0; i < Countries.Length; i++)
{
Countries[i].gameObject.SetActive(false);
@@ -61,8 +60,8 @@ public class FloorMap : UdonSharpBehaviour
// We're syncing the countries and cities as one array to keep
// things simple to sync all at once.
// Array format is all countries first, then all cities.
int[] RandomCountriesAndCities = new int[MAX_SELECTED_COUNTRIES * 2];
// Array format is all countries first, then all regions, then all cities.
int[] RandomCountriesAndCities = new int[MAX_SELECTED_COUNTRIES * 3];
NewRandomCountries.CopyTo(RandomCountriesAndCities, 0);
NewRandomCities.CopyTo(RandomCountriesAndCities, MAX_SELECTED_COUNTRIES);
@@ -96,6 +95,7 @@ public class FloorMap : UdonSharpBehaviour
Location.gameObject.SetActive(true);
_ChosenCountries[i] = Location.Country;
_ChosenRegions[i] = Location.Region;
_ChosenCities[i] = Location.City;
}
@@ -107,6 +107,11 @@ public class FloorMap : UdonSharpBehaviour
return CountryIndex < _ChosenCountries.Length ? _ChosenCountries[CountryIndex] : "";
}
public string GetRegion(int RegionIndex)
{
return RegionIndex < _ChosenRegions.Length ? _ChosenRegions[RegionIndex] : "";
}
public string GetCity(int CityIndex)
{
return CityIndex < _ChosenCities.Length ? _ChosenCities[CityIndex] : "";
+51 -3
View File
@@ -44,7 +44,7 @@ MonoBehaviour:
Data:
- Name:
Entry: 12
Data: 2
Data: 3
- Name:
Entry: 7
Data:
@@ -104,13 +104,13 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
Data: City
Data: Region
- Name: $v
Entry: 7
Data: 5|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: City
Data: Region
- Name: <UserType>k__BackingField
Entry: 9
Data: 3
@@ -147,6 +147,54 @@ MonoBehaviour:
- Name:
Entry: 8
Data:
- Name:
Entry: 7
Data:
- Name: $k
Entry: 1
Data: City
- Name: $v
Entry: 7
Data: 7|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: City
- Name: <UserType>k__BackingField
Entry: 9
Data: 3
- Name: <SystemType>k__BackingField
Entry: 9
Data: 3
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 6
Data:
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: true
- Name: _fieldAttributes
Entry: 7
Data: 8|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
- Name:
Entry: 13
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 13
Data:
@@ -9,5 +9,6 @@ using VRC.Udon;
public class FloorMapLocation : UdonSharpBehaviour
{
public string Country = "";
public string Region = "";
public string City = "";
}