BallanceStalker/scripts/utils/GodotPollutedObject.cs
2022-07-02 21:23:45 +08:00

26 lines
494 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BallanceStalker {
public class GodotPollutedObject : Godot.Object {
public GodotPollutedObject() {
Data = null;
}
public GodotPollutedObject(object deliver) {
Data = deliver;
}
private object Data;
public T GetData<T>() where T : class {
return Data as T;
}
}
}