27 lines
917 B
C#
27 lines
917 B
C#
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
namespace Cielonos.MainGame.Rewards
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 请求 ZoneManager 生成 Combat 交互奖励时使用的位置约束。
|
|||
|
|
/// spawnGroup 决定使用哪组点位,spawnIndex/occupiedPositions 用于让多个奖励错开摆放。
|
|||
|
|
/// </summary>
|
|||
|
|
public readonly struct CombatRewardSpawnRequest
|
|||
|
|
{
|
|||
|
|
public readonly string spawnGroup;
|
|||
|
|
public readonly int spawnIndex;
|
|||
|
|
public readonly float spacing;
|
|||
|
|
public readonly IReadOnlyList<Vector3> occupiedPositions;
|
|||
|
|
|
|||
|
|
public CombatRewardSpawnRequest(string spawnGroup, int spawnIndex, float spacing,
|
|||
|
|
IReadOnlyList<Vector3> occupiedPositions)
|
|||
|
|
{
|
|||
|
|
this.spawnGroup = spawnGroup;
|
|||
|
|
this.spawnIndex = spawnIndex;
|
|||
|
|
this.spacing = spacing;
|
|||
|
|
this.occupiedPositions = occupiedPositions;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|