Fix port cinematics and expand ship attractions
This commit is contained in:
54
Assets/Soundings/Runtime/CasinoDeck.cs
Normal file
54
Assets/Soundings/Runtime/CasinoDeck.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Soundings
|
||||
{
|
||||
internal sealed partial class DeckPassengers
|
||||
{
|
||||
private static void FitCasino(Venue room, Facility facility, float width, float depth)
|
||||
{
|
||||
float tableHalfWidth = Mathf.Min(1.30f, width * .14f);
|
||||
int rows = facility == Facility.CasinoLounge ? 1 : facility == Facility.GrandCasino ? 3 : 2;
|
||||
for (int i = 0; i < rows * 2; i++)
|
||||
{
|
||||
float x = (i % 2 == 0 ? -1 : 1) * width * .24f;
|
||||
float z = (i / 2 - (rows - 1) * .5f) * depth * (rows == 2 ? .34f : .26f);
|
||||
room.Solid(Joinery, x, .71f, z, tableHalfWidth * 2, .15f, 1.05f);
|
||||
room.Box(CasinoFelt, x, .799f, z, tableHalfWidth * 1.86f, .026f, .91f);
|
||||
room.Box(Brass, x, .769f, z - .519f, tableHalfWidth * 1.98f, .038f, .017f);
|
||||
room.Box(DeckTrim, x, .29f, z, .29f, .57f, .54f);
|
||||
room.Box(Alloy, x, .061f, z, .71f, .08f, .70f);
|
||||
for (int seat = -1; seat <= 1; seat++)
|
||||
{
|
||||
float place = x + seat * tableHalfWidth * .59f;
|
||||
room.Seat(place, z - .90f, ShowVelvet);
|
||||
room.Guest(GuestActivity.PlayCards, place, z - .90f, 17 + i * 11 + seat, OnboardService.Casino,
|
||||
.08f + (seat + 1) * .045f + i * .025f, .49f);
|
||||
for (int card = 0; card < 2; card++)
|
||||
room.Box(Ivory, place + card * .08f, .816f, z - .25f, .063f, .006f, .09f);
|
||||
for (int chip = 0; chip < 3; chip++)
|
||||
room.Cylinder(chip == 1 ? Ivory : Brass, place + .24f, .81f + chip * .011f, z - .14f, .011f, .025f);
|
||||
}
|
||||
room.Guest(GuestActivity.Dealer, x, z + .94f, 61 + i, OnboardService.Casino, .04f, direction: -1);
|
||||
room.Box(Alloy, x, .825f, z + .35f, .59f, .042f, .13f);
|
||||
}
|
||||
|
||||
for (int side = -1; side <= 1; side += 2)
|
||||
for (int i = 0; i < rows + 1; i++)
|
||||
{
|
||||
float x = side * width * .448f;
|
||||
float z = (i - rows * .5f) * Mathf.Min(.92f, depth * .16f);
|
||||
room.Solid(DisplayDark, x, .70f, z, .63f, 1.40f, .64f);
|
||||
room.Box(Brass, x - side * .322f, 1.09f, z, .046f, .46f, .53f);
|
||||
room.Box(ScreenChart, x - side * .348f, 1.12f, z, .018f, .28f, .38f);
|
||||
room.Box(ScreenAmber, x - side * .355f, .91f, z, .026f, .053f, .23f);
|
||||
}
|
||||
|
||||
float cashZ = depth * .41f;
|
||||
room.Solid(Joinery, 0, .48f, cashZ, 2.48f, .96f, .63f);
|
||||
room.Box(Marble, 0, .99f, cashZ, 2.62f, .10f, .73f);
|
||||
room.Box(Alloy, 0, .55f, cashZ - .326f, 2.3f, .045f, .034f);
|
||||
room.Box(DeckTrim, -.63f, 1.10f, cashZ + .12f, .37f, .16f, .29f);
|
||||
room.Station(StationKind.Casino, 0, cashZ - .56f);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user