public class BetterLocalPlayer : LocalPlayer
{
public string Test = "test";
public BetterLocalPlayer(ICore core, IntPtr nativePointer, uint id) : base(core, nativePointer, id)
{
}
}
public class BetterLocalPlayerFactory : IPlayerFactory
{
public IPlayer Create(ICore core, IntPtr entityPointer, uint id)
{
return new BetterLocalPlayer(core, entityPointer, id);
}
public ILocalPlayer GetLocalPlayer(ICore core, IntPtr localPlayerPointer, uint id)
{
return new BetterLocalPlayer(core, localPlayerPointer, id);
}
}
public override IPlayerFactory GetPlayerFactory()
{
return new BetterLocalPlayerFactory();
}
This code crashes the client. No logs, nothing. Just crash.
This code crashes the client. No logs, nothing. Just crash.
Am i doing something wrong?