public void Write(UsCmd cmd) { cmd.WriteInt32(this._instID); cmd.WriteInt32(this._vertCount); cmd.WriteInt32(this._materialCount); cmd.WriteFloat(this._boundSize); cmd.WriteFloat(this._camDist); }
public void Write(UsCmd cmd) { cmd.WriteInt32(_instID); cmd.WriteInt32(_vertCount); cmd.WriteInt32(_triCount); cmd.WriteInt32(_materialCount); cmd.WriteFloat(_boundSize); cmd.WriteFloat(_camDist); }
public UsCmd CreatePacket() { UsCmd cmd = new UsCmd(); cmd.WriteNetCmd(eNetCmd.SV_FrameDataV2); cmd.WriteInt32(_frameCount); cmd.WriteFloat(_frameDeltaTime); cmd.WriteFloat(_frameRealTime); cmd.WriteFloat(_frameStartTime); UsCmdUtil.WriteIntList(cmd, _frameMeshes); UsCmdUtil.WriteIntList(cmd, _frameMaterials); UsCmdUtil.WriteIntList(cmd, _frameTextures); return cmd; }
public UsCmd CreatePacket() { UsCmd c = new UsCmd(); c.WriteNetCmd(eNetCmd.SV_FrameDataV2); c.WriteInt32(this._frameCount); c.WriteFloat(this._frameDeltaTime); c.WriteFloat(this._frameRealTime); c.WriteFloat(this._frameStartTime); UsCmdUtil.WriteIntList(c, this._frameMeshes); UsCmdUtil.WriteIntList(c, this._frameMaterials); UsCmdUtil.WriteIntList(c, this._frameTextures); return(c); }
private bool NetHandle_QuerySliders(eNetCmd cmd, UsCmd c) { UsCmd cmd1 = new UsCmd(); cmd1.WriteNetCmd(eNetCmd.SV_QuerySlidersResponse); cmd1.WriteInt32(GameInterface.VisiblePercentages.Count); foreach (KeyValuePair <string, double> visiblePercentage in GameInterface.VisiblePercentages) { cmd1.WriteString(visiblePercentage.Key); cmd1.WriteFloat(0.0f); cmd1.WriteFloat(100f); cmd1.WriteFloat((float)visiblePercentage.Value); } UsNet.Instance.SendCommand(cmd1); return(true); }
private bool NetHandle_QuerySliders(eNetCmd cmd, UsCmd c) { UsCmd pkt = new UsCmd(); pkt.WriteNetCmd(eNetCmd.SV_QuerySlidersResponse); pkt.WriteInt32(GameInterface.VisiblePercentages.Count); foreach (var p in GameInterface.VisiblePercentages) { //Log.Info("{0} slider added.", p.Key); pkt.WriteString(p.Key); pkt.WriteFloat(0.0f); pkt.WriteFloat(100.0f); pkt.WriteFloat((float)p.Value); } UsNet.Instance.SendCommand(pkt); return(true); }
public UsCmd CreatePacket() { UsCmd c = new UsCmd(); c.WriteNetCmd(eNetCmd.SV_App_Logging); c.WriteInt16((short)SeqID); c.WriteInt32((int)LogType); c.WriteStringStripped(Content, MAX_CONTENT_LEN); c.WriteFloat(RealtimeSinceStartup); return(c); }
public UsCmd CreatePacket() { UsCmd usCmd = new UsCmd(); usCmd.WriteNetCmd(eNetCmd.SV_App_Logging); usCmd.WriteInt16((short)this.SeqID); usCmd.WriteInt32((int)this.LogType); usCmd.WriteStringStripped(this.Content, (short)1024); usCmd.WriteFloat(this.RealtimeSinceStartup); return(usCmd); }
void LogTarget_Remotely(object sender, LogEventArgs args) { if (UsNet.Instance != null) { UsCmd c = new UsCmd(); c.WriteNetCmd(eNetCmd.SV_App_Logging); c.WriteInt16((short)args.SeqID); c.WriteInt32((int)args.LogType); c.WriteStringStripped(args.Content, MAX_CONTENT_LEN); c.WriteFloat(args.Time); UsNet.Instance.SendCommand(c); } }
private void LogTarget_Remotely(object sender, LogEventArgs args) { if (UsNet.Instance == null) { return; } UsCmd cmd = new UsCmd(); cmd.WriteNetCmd(eNetCmd.SV_App_Logging); cmd.WriteInt16((short)args.SeqID); cmd.WriteInt32((int)args.LogType); cmd.WriteStringStripped(args.Content, (short)1024); cmd.WriteFloat(args.Time); UsNet.Instance.SendCommand(cmd); }
public void Write(UsCmd cmd) { cmd.WriteInt32(_instID); cmd.WriteInt32(_vertCount); cmd.WriteInt32(_triCount); cmd.WriteInt32(_materialCount); cmd.WriteFloat(_boundSize); }
void LogTarget_Remotely(object sender, LogEventArgs args) { if (UsNet.Instance != null) { UsCmd c = new UsCmd(); c.WriteNetCmd(eNetCmd.SV_App_Logging); c.WriteInt16((short)args.SeqID); c.WriteInt32((int)args.LogType); c.WriteStringStripped(args.Content, MAX_CONTENT_LEN); c.WriteFloat(args.Time); UsNet.Instance.SendCommand(c); } }
public UsCmd CreatePacket() { UsCmd c = new UsCmd(); c.WriteNetCmd(eNetCmd.SV_App_Logging); c.WriteInt16((short)SeqID); c.WriteInt32((int)LogType); c.WriteStringStripped(Content, MAX_CONTENT_LEN); c.WriteFloat(RealtimeSinceStartup); return c; }
private bool NetHandle_QuerySliders(eNetCmd cmd, UsCmd c) { UsCmd pkt = new UsCmd(); pkt.WriteNetCmd(eNetCmd.SV_QuerySlidersResponse); pkt.WriteInt32(GameInterface.VisiblePercentages.Count); foreach (var p in GameInterface.VisiblePercentages) { //Log.Info("{0} slider added.", p.Key); pkt.WriteString(p.Key); pkt.WriteFloat(0.0f); pkt.WriteFloat(100.0f); pkt.WriteFloat((float)p.Value); } UsNet.Instance.SendCommand(pkt); return true; }