2025-02-12 16:48:15 +00:00
|
|
|
|
|
|
|
|
using Godot;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass,Icon("res://addons/rokojori_action_library/Icons/SensorGroup.svg")]
|
|
|
|
|
public partial class SensorDevice: Resource
|
|
|
|
|
{
|
2025-10-24 11:38:51 +00:00
|
|
|
|
|
|
|
|
public virtual string GetInfo()
|
|
|
|
|
{
|
|
|
|
|
return GetType().Name;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-12 16:48:15 +00:00
|
|
|
public virtual LocalizedString GetDeviceName()
|
|
|
|
|
{
|
|
|
|
|
return LocaleText.Create( "---" );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual bool ContainsSensor( Sensor sensor )
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual bool ContainsIcon( InputIcon icon )
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|