private static void StartEvaluation(Character player, string callingProc, Target target = null, CastedSpell spell = null, DiceStoppedRollingData dice = null, object customData = null) { //historyStack.Push(history); //history = new List<string>(); LogCallingProc(callingProc); AddPlayerVariables(player, target, spell, dice, customData); if (player != null) { player.StartingExpressionEvaluation(); } BeginUpdate(); }
private static void StartEvaluation(Character player, string callingProc, Creature target = null, CastedSpell spell = null) { //historyStack.Push(history); //history = new List<string>(); LogCallingProc(callingProc); AddPlayerVariables(player, target, spell); if (player != null) { player.StartingExpressionEvaluation(); } BeginUpdate(); }
private static void AddPlayerVariables(Character player, string callingProc, Creature target = null, CastedSpell spell = null) { //historyStack.Push(history); //history = new List<string>(); LogCallingProc(callingProc); variableStack.Push(expressionEvaluator.Variables); expressionEvaluator.Variables = new Dictionary <string, object>() { { STR_Player, player }, { STR_Target, target }, { STR_CastedSpell, spell } }; if (player != null) { player.StartingExpressionEvaluation(); } BeginUpdate(); }