Esempio n. 1
0
 private void OnLuaChanged(LuaWatchItem luaWatchItem, Lua.Result newResult)
 {
     if (string.Equals(luaWatchItem.LuaExpression, this.luaExpression) && (questChangedHandler != null))
     {
         questChangedHandler(title, StringToState(newResult.AsString));
     }
 }
Esempio n. 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));
 }
Esempio n. 3
0
 private void OnLuaChanged(LuaWatchItem luaWatchItem, Lua.Result newResult)
 {
     if (string.Equals(luaWatchItem.LuaExpression, this.luaExpression) && (questChangedHandler != null)) {
         questChangedHandler(title, StringToState(newResult.AsString));
     }
 }
Esempio n. 4
0
 void OnLuaValueChanged(LuaWatchItem luaWatchItem, Lua.Result newValue)
 {
     Debug.Log(string.Format("<color=magenta>{0} CHANGED TO: {1}</color>", luaExpression, newValue.AsString));
 }