public void Update(JORServer jorServer) { if (this.ShouldRequestGenObjectInfo()) { jorServer.SendGenObjectInfo(this); } }
public void Click(JORServer server) { var stream = BeginSendPropertyEvent(server); stream.Write(0); server.SendEvent(stream); }
private void SendPropertyEvent(JORServer server) { var stream = BeginSendPropertyEvent(server); stream.Write(4); stream.Write(SelectedIndex); server.SendEvent(stream); }
private void SendPropertyEvent(JORServer server) { var stream = BeginSendPropertyEvent(server); stream.Write(4); stream.Write(Value); server.SendEvent(stream); }
public JORPanel(JORServer server, JORNode node, StringDictionary transDict) { this.AutoScroll = true; this.Server = server; this.Node = node; this.transDict = transDict; BuildPanel(Node); }
private void SendPropertyEvent(JORServer server) { var stream = BeginSendPropertyEvent(server); stream.Write(4); stream.Write((ushort)(Value ? 0x01 : 0x00)); stream.Write((ushort)Mask); server.SendEvent(stream); }
public void SetValue(JORServer server, string newValue) { if (newValue == Text) { return; } Text = newValue; SendPropertyEvent(server); }
private void SendPropertyEvent(JORServer server) { var stream = BeginSendPropertyEvent(server); var sjis = Encoding.GetEncoding(932); var bytes = sjis.GetBytes(Text); stream.Write(bytes.Length); stream.Write(bytes); server.SendEvent(stream); }
public void SetSelectedIndex(JORServer server, uint newSelectedIndex) { if (newSelectedIndex == SelectedIndex) { return; } SelectedIndex = newSelectedIndex; SendPropertyEvent(server); }
public void SetValue(JORServer server, float newValue) { if (newValue == Value) { return; } Value = newValue; SendPropertyEvent(server); }
private void SetCurrentValue(JORServer server, uint newCurrentValue) { if (newCurrentValue == CurrentValue) { return; } CurrentValue = newCurrentValue; SendPropertyEvent(server); }
private void SetCurrentClient(HIO2ServerClient client) { if (client == currentClient) { return; } currentClient = client; jhiClient = currentClient != null ? new JHIClient(currentClient) : null; jorServer = currentClient != null ? new JORServer(jhiClient) : null; }
protected MemoryOutputStream BeginSendPropertyEvent(JORServer server) { MemoryOutputStream stream = server.BeginSendEvent(JOREventType.PropertyEvent); stream.Write(Node.NodePtr); stream.Write(0); // Unknown, game skips over it stream.WriteMagic(Type); stream.Write((uint)Kind); stream.Write(ID); stream.Write(ListenerPtr); return(stream); }
private void SetCurrentClient(HIO2ServerClient client) { if (client == currentClient) { return; } currentClient = client; jhiClient = currentClient != null ? new JHIClient(currentClient) : null; jorServer = currentClient != null ? new JORServer(jhiClient) : null; if (jorServer != null) { jorServer.NodeUpdated += NodeUpdated; } hexBox1.ByteProvider = currentClient != null ? new DynamicFileByteProvider(currentClient.file.CreateViewStream()) : null; SyncPanelControls(null); }
public void SetSelectedIndex(JORServer server, uint newSelectedIndex) { SetCurrentValue(server, Items[(int)newSelectedIndex].Value); }