Cyber/Assets/Scripts/Entities/SyncBases/Interactable.cs

26 lines
787 B
C#
Raw Normal View History

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
namespace Cyber.Entities.SyncBases {
/// <summary>
/// Base class for all interactible entities in the world.
/// </summary>
public abstract class Interactable : SyncBase {
/// <summary>
/// All interactables should implement their interactions by overriding this.
/// </summary>
2017-05-12 01:03:27 +02:00
public abstract void Interact(SyncBase trigger, InteractionType type);
/// <summary>
/// Get Interaction information about this interactible.
/// </summary>
/// <returns>The Interaction information.</returns>
public abstract InteractableSyncdata GetInteractableSyncdata();
}
}