public bool GetString(string chuckName, string variableName, Chuck.StringCallback callback) { if (ids.ContainsKey(chuckName)) { return(GetString(ids[chuckName], variableName, callback)); } else { Debug.Log(chuckName + " has not been initialized as a ChucK instance"); return(false); } }
public bool GetString(System.UInt32 chuckId, string variableName, Chuck.StringCallback callback) { // save a copy of the delegate so it doesn't get garbage collected! string internalKey = chuckId.ToString() + "$" + variableName; stringCallbacks[internalKey] = callback; // register the callback with ChucK if (!getChuckString(chuckId, variableName, stringCallbacks[internalKey])) { return(false); } return(true); }
// ---------------------------------------------------- // name: GetString // desc: eventually call the callback with the value // of global string variableName // ---------------------------------------------------- public bool GetString(string variableName, Chuck.StringCallback callback) { return(chuckMainInstance.GetString(variableName, callback)); }
// ---------------------------------------------------- // name: GetString // desc: eventually call the callback with the value // of global string variableName // ---------------------------------------------------- public bool GetString(string variableName, Chuck.StringCallback callback) { return(Chuck.Manager.GetString(myChuckId, variableName, callback)); }