2020-12-27 22:18:22 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using MessagePack;
|
|
|
|
|
using Unity.Mathematics;
|
|
|
|
|
using static Unity.Mathematics.math;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, MessagePackObject, RuntimeInspectable]
|
2020-12-27 22:18:22 +00:00
|
|
|
public class CockpitData : BehaviorData
|
|
|
|
|
{
|
2021-04-18 05:13:20 +01:00
|
|
|
public override Behavior CreateInstance(EquippedItem item)
|
|
|
|
|
{
|
|
|
|
|
return new Cockpit(this, item);
|
|
|
|
|
}
|
|
|
|
|
public override Behavior CreateInstance(ConsumableItemEffect item)
|
2020-12-27 22:18:22 +00:00
|
|
|
{
|
2021-04-12 04:20:52 +01:00
|
|
|
return new Cockpit(this, item);
|
2020-12-27 22:18:22 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-18 05:13:20 +01:00
|
|
|
public class Cockpit : Behavior
|
2020-12-27 22:18:22 +00:00
|
|
|
{
|
|
|
|
|
private CockpitData _data;
|
2026-06-13 04:56:50 +01:00
|
|
|
|
2021-04-18 05:13:20 +01:00
|
|
|
public Cockpit(CockpitData data, EquippedItem item) : base(data, item)
|
2020-12-27 22:18:22 +00:00
|
|
|
{
|
|
|
|
|
_data = data;
|
|
|
|
|
}
|
2026-06-13 04:56:50 +01:00
|
|
|
|
2021-04-18 05:13:20 +01:00
|
|
|
public Cockpit(CockpitData data, ConsumableItemEffect item) : base(data, item)
|
2020-12-27 22:18:22 +00:00
|
|
|
{
|
2021-04-18 05:13:20 +01:00
|
|
|
_data = data;
|
2020-12-27 22:18:22 +00:00
|
|
|
}
|
|
|
|
|
}
|