public void Init() { Debugger.AddProcessor(ProcessCmd); // Adds Seperate insert Body Permission var capiInsertBody = new SimCapiBoolean(false); capiInsertBody.expose("Permission.InsertBody", false, false); capiInsertBody.setChangeDelegate(delegate(bool value, ChangedBy by) { // Add Permisison on true. if (value && !capiPerms.getList().Contains("InsertBody")) { capiPerms.getList().Add("InsertBody"); capiPerms.updateValue(); } // Remove Permission on false. else if (!value && capiPerms.getList().Contains("InsertBody")) { capiPerms.getList().Remove("InsertBody"); capiPerms.updateValue(); } }); capiPerms = new SimCapiStringArray(); capiPerms.expose("Permission.List", false, false); }
/// <summary> /// This function initializes the class /// </summary> void Awake() { // Add "test" command processor and output. Debugger.AddProcessor(processTest); Debugger.AddOutput(output); }