// Token: 0x06002C80 RID: 11392 RVA: 0x000A6810 File Offset: 0x000A4A10 public ContextMenuItemData(global::ContextActionPrototype prototype) { this.name = prototype.name; string text = prototype.text; if (string.IsNullOrEmpty(text)) { this.utf8_length = 0; this.utf8_text = null; } else { this.utf8_text = Encoding.UTF8.GetBytes(text); this.utf8_length = this.utf8_text.Length; } }
// Token: 0x06002C7E RID: 11390 RVA: 0x000A6758 File Offset: 0x000A4958 public void R() { if (this.enumerator.MoveNext()) { this.length++; global::ContextActionPrototype prototype = this.enumerator.Current; this.R(); this.array[--this.spot] = new ContextMenuItemData(prototype); } else if (this.length == 0) { this.array = null; } else { this.array = new ContextMenuItemData[this.length]; this.spot = this.length; } }
// Token: 0x06002CCA RID: 11466 RVA: 0x000A7A5C File Offset: 0x000A5C5C public global::ContextResponse ContextRespondMenu(global::Controllable controllable, global::ContextActionPrototype action, ulong timestamp) { base.SendMessage(((global::ContextMessenger.MessageAction)action).message, controllable); return(global::ContextResponse.DoneBreak); }
// Token: 0x06002CB7 RID: 11447 RVA: 0x000A78A8 File Offset: 0x000A5AA8 public global::ContextResponse ContextRespondMenu(global::Controllable controllable, global::ContextActionPrototype action, ulong timestamp) { global::ContextTest.ContextCallback contextCallback = (global::ContextTest.ContextCallback)action; return(contextCallback.func(controllable)); }