it wrote it sycessfully but loading not that much I imagen its becuse my class strutor is a bit too complicated for the json serilzation?
and if so any tips to make it a bit less complicated?
heres the class' its trying to work with
public class PluginData//main class
{
public Dictionary<IPlayer, CostumPlayerData> CosdumPlayerDatas;
public Dictionary<IPlayer, List<tacti.Mail>> mails;
public List<tacti.Question> questions;
}
public class CostumPlayerData//plese ignorre my awfull spelling :P
{
public float Goodwill;
public List<string> GoodwillHistory;
public CostumPlayerData(float goodwill, List<string> goodwillHistory)
{
Goodwill = goodwill;
GoodwillHistory = goodwillHistory;
}
public CostumPlayerData()
{
Goodwill = 3;
GoodwillHistory = new List<string>();
}
}
public class Question
{
public string quesiton;
public IPlayer player;
public Question(string quesiton, IPlayer player)
{
this.quesiton = quesiton;
this.player = player;
}
}
public class Mail
{
public string message;
public IPlayer player;
public Mail(string message, IPlayer player)
{
this.message = message;
this.player = player;
}
}perhaps if I used long insted of Iplayer so just indexing useing the steam id would be better?