Beispiel #1
0
	public Compartment ()
	{
		aabb = new AABBi(new Vec2i(0,0), new Vec2i(0,0));
		color = new Color(UnityEngine.Random.value, UnityEngine.Random.value, UnityEngine.Random.value);
		isPtr = false;
		ptrValue = null;
	}
Beispiel #2
0
		public void FitAABB(ref AABBi aabb)
		{
			bl.x = Mathf.Min(aabb.bl.x, bl.x);
			bl.y = Mathf.Min(aabb.bl.y, bl.y);

			tr.x = Mathf.Max(aabb.tr.x, tr.x);
			tr.y = Mathf.Max(aabb.tr.y, tr.y);
		}
Beispiel #3
0
    public ServerVessel()
        : base(NextIndex++)
    {
        aabb = new AABBi(new Vec2i(0,0), new Vec2i(0,0));

        interiorExists = false;
        spaceAddress = 0;

        chunkCheckTimer.Set(CHUNK_UPDATE_INTERVAL);

        Vessels.Add(this);
    }