yeah I don’t know what this means
can some one tell me what this means. the class is it’s talking about is in a file with other classes aswell but not nested.
/root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/ExceptionUtils.cs:113 - System.ArgumentException: An item with the same key has already been added. Key: SpetzV6.FrameWork.Area3DOBJ
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Godot.Bridge.ScriptManagerBridge.ScriptTypeBiMap.Add(IntPtr scriptPtr, Type scriptType) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.types.cs:line 27
at Godot.Bridge.ScriptManagerBridge.TryReloadRegisteredScriptWithClass(IntPtr scriptPtr) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs:line 711
public partial class Area3DOBJ : Area3D, IOBJ
{
public bool Debug { get => false;}
public event EnterEventHandeler PlayerEnterEvent;
public event EnterEventHandeler PlayerExitEvent;
public override void _Ready()
{
BodyEntered += (Body) =>
{
if(Body is BasePlayer Player)
{
PlayerEnterEvent?.Invoke(Player);
}
};
BodyExited +=(Body) =>
{
if(Body is BasePlayer Player)
{
PlayerExitEvent?.Invoke(Player);
}
};
}
public override void _PhysicsProcess(double delta)
{
base._PhysicsProcess(delta);
CastCheck();
}
public void CastCheck()
{
GodotObject Collision = IOBJ.CastEnterLogic((Node3D)GetParent().GetTree().Root.GetChild(0),this);
if (Collision is BasePlayer Player)
{
PlayerEnterEvent?.Invoke(Player);
}
}
}