-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathRoomData.cs
39 lines (30 loc) · 986 Bytes
/
RoomData.cs
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
using System;
using SpaceMarine.Model;
using UnityEngine;
namespace SpaceMarine.Data
{
[CreateAssetMenu(menuName = "Data/Room")]
public class RoomData : ScriptableObject
{
[Tooltip("Description of the enemy.")] [Multiline]
public string Description;
[Tooltip("Doors inside the room.")] public DoorSpot[] Doors;
[Tooltip("Creatures inside the room.")]
public EnemySpot[] Enemies;
[Tooltip("The creature type identification.")]
public RoomId Id;
[Tooltip("Name shown to the user.")] public string Name;
}
[Serializable]
public class EnemySpot
{
[Tooltip("Creature inside the room.")] public EnemyData Enemy;
[Tooltip("Placed Local Position.")] public Vector2 Position;
}
[Serializable]
public class DoorSpot
{
[Tooltip("Doors inside the room.")] public DoorData Door;
[Tooltip("Placed Local Position.")] public Vector2 Position;
}
}