Exemple #1
0
 private void OnLuaChanged(LuaWatchItem luaWatchItem, Lua.Result newResult)
 {
     if (string.Equals(luaWatchItem.LuaExpression, this.luaExpression) && (questChangedHandler != null))
     {
         questChangedHandler(title, StringToState(newResult.AsString));
     }
 }
Exemple #2
0
 /// <summary>
 /// Removes a watch item from the list.
 /// </summary>
 /// <param name='luaExpression'>
 /// Lua expression.
 /// </param>
 /// <param name='luaChangedHandler'>
 /// Lua changed handler.
 /// </param>
 public void RemoveObserver(string luaExpression, LuaChangedDelegate luaChangedHandler)
 {
     m_watchList.RemoveAll(watchItem => watchItem.Matches(LuaWatchItem.LuaExpressionWithReturn(luaExpression), luaChangedHandler));
 }
Exemple #3
0
 private void OnLuaChanged(LuaWatchItem luaWatchItem, Lua.Result newResult)
 {
     if (string.Equals(luaWatchItem.LuaExpression, this.luaExpression) && (questChangedHandler != null)) {
         questChangedHandler(title, StringToState(newResult.AsString));
     }
 }
Exemple #4
0
 void OnLuaValueChanged(LuaWatchItem luaWatchItem, Lua.Result newValue)
 {
     Debug.Log(string.Format("<color=magenta>{0} CHANGED TO: {1}</color>", luaExpression, newValue.AsString));
 }