2 using droid.Neodroid.Environments;
3 using droid.Neodroid.Utilities;
6 namespace droid.Neodroid.Prototyping.Displayers.ECS {
7 public abstract class EcsDisplayer : MonoBehaviour {
8 PrototypingEnvironment _environment;
10 public PrototypingEnvironment ParentEnvironment {
11 get {
return this._environment; }
12 set { this._environment = value; }
15 [SerializeField]
bool _debugging;
17 public bool Debugging {
get {
return this._debugging; }
set { this._debugging = value; } }
19 public virtual string Identifier {
get {
return this.name +
"Displayer"; } }
21 protected virtual void Awake() {
22 this.RegisterComponent();
26 protected virtual void Setup() { }
30 public virtual void RefreshStart() { this.Start(); }
32 protected virtual void RegisterComponent() {
33 this._environment = NeodroidUtilities.MaybeRegisterComponent(this._environment,
this);
36 public abstract void Display(
float value);
37 public abstract void Display(
double value);
38 public abstract void Display(
float[] values);
39 public abstract void Display(
string value);