-
Notifications
You must be signed in to change notification settings - Fork 0
/
Floor.cs
45 lines (42 loc) · 1.34 KB
/
Floor.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
40
41
42
43
44
45
using Sandbox.Game.EntityComponents;
using Sandbox.ModAPI.Ingame;
using Sandbox.ModAPI.Interfaces;
using SpaceEngineers.Game.ModAPI.Ingame;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using VRage;
using VRage.Collections;
using VRage.Game;
using VRage.Game.Components;
using VRage.Game.GUI.TextPanel;
using VRage.Game.ModAPI.Ingame;
using VRage.Game.ModAPI.Ingame.Utilities;
using VRage.Game.ObjectBuilders.Definitions;
using VRageMath;
namespace IngameScript
{
partial class Program
{
internal class Floor
{
internal string Name { get; private set; }
internal float Height { get; private set; }
// A optional list with doors which will open automatically until the elevator reached its destination
// and will be closed when the elevator starts moving.
internal List<IMyDoor> Doors { get; private set; } = new List<IMyDoor>();
internal Floor(string name, float height, IMyBlockGroup blockGroup = null)
{
this.Name = name;
this.Height = height;
if (blockGroup != null)
{
blockGroup.GetBlocksOfType<IMyDoor>(this.Doors);
}
}
}
}
}