2020-03-22 19:05:26 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
using MessagePack;
|
2020-07-03 01:33:42 +01:00
|
|
|
|
using Newtonsoft.Json;
|
2020-03-22 19:05:26 +00:00
|
|
|
|
using Unity.Mathematics;
|
|
|
|
|
|
using static Unity.Mathematics.math;
|
|
|
|
|
|
|
|
|
|
|
|
[MessagePackObject]
|
2020-04-09 10:33:16 +01:00
|
|
|
|
public class Ship : Entity
|
2020-03-22 19:05:26 +00:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
// [Key("bindings")] public Dictionary<KeyCode,Guid> Bindings = new Dictionary<KeyCode,Guid>();
|
|
|
|
|
|
//[IgnoreMember] public int HullHardpointCount;
|
|
|
|
|
|
|
|
|
|
|
|
// [IgnoreMember] public Dictionary<Targetable, float> Contacts = new Dictionary<Targetable, float>();
|
|
|
|
|
|
// [IgnoreMember] public Targetable Target;
|
2020-12-10 23:20:38 +00:00
|
|
|
|
public Entity HomeEntity;
|
2020-03-22 19:05:26 +00:00
|
|
|
|
|
2020-12-10 23:20:38 +00:00
|
|
|
|
public Ship(ItemManager itemManager, Zone zone, EquippableItem hull) : base(itemManager, zone, hull)
|
2020-04-09 10:33:16 +01:00
|
|
|
|
{
|
|
|
|
|
|
}
|
2020-03-22 19:05:26 +00:00
|
|
|
|
|
2020-04-09 10:33:16 +01:00
|
|
|
|
public override void Update(float delta)
|
2020-03-22 19:05:26 +00:00
|
|
|
|
{
|
2020-04-23 03:31:17 +01:00
|
|
|
|
Position += Velocity * delta;
|
2020-04-09 10:33:16 +01:00
|
|
|
|
base.Update(delta);
|
2020-03-22 19:05:26 +00:00
|
|
|
|
}
|
2020-04-09 07:48:45 +01:00
|
|
|
|
}
|
|
|
|
|
|
|