protected override Composite CreateBehavior()
{
return new Action(ret =>
{
foreach (var entry in WeightList)
{
if (FunkyGame.Game.ObjectCustomWeights.ContainsKey(entry.SNO))
FunkyGame.Game.ObjectCustomWeights[entry.SNO] = entry.WEIGHT;
else
FunkyGame.Game.ObjectCustomWeights.Add(entry.SNO, entry.WEIGHT);
}
Logger.DBLog.InfoFormat("[Funky] Using Custom Weights for {0} objects", WeightList.Count);
m_IsDone=true;
});
}