public override void Reflection(StringBuilder sb) { sb.AppendLine("<EntityStatePdu>"); base.Reflection(sb); try { sb.AppendLine("<entityID>"); this._entityID.Reflection(sb); sb.AppendLine("</entityID>"); sb.AppendLine("<forceId type=\"byte\">" + this._forceId.ToString(CultureInfo.InvariantCulture) + "</forceId>"); sb.AppendLine("<variableParameters type=\"byte\">" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + "</variableParameters>"); sb.AppendLine("<entityType>"); this._entityType.Reflection(sb); sb.AppendLine("</entityType>"); sb.AppendLine("<alternativeEntityType>"); this._alternativeEntityType.Reflection(sb); sb.AppendLine("</alternativeEntityType>"); sb.AppendLine("<entityLinearVelocity>"); this._entityLinearVelocity.Reflection(sb); sb.AppendLine("</entityLinearVelocity>"); sb.AppendLine("<entityLocation>"); this._entityLocation.Reflection(sb); sb.AppendLine("</entityLocation>"); sb.AppendLine("<entityOrientation>"); this._entityOrientation.Reflection(sb); sb.AppendLine("</entityOrientation>"); sb.AppendLine("<entityAppearance type=\"uint\">" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + "</entityAppearance>"); sb.AppendLine("<deadReckoningParameters>"); this._deadReckoningParameters.Reflection(sb); sb.AppendLine("</deadReckoningParameters>"); sb.AppendLine("<marking>"); this._marking.Reflection(sb); sb.AppendLine("</marking>"); sb.AppendLine("<capabilities type=\"uint\">" + this._capabilities.ToString(CultureInfo.InvariantCulture) + "</capabilities>"); for (int idx = 0; idx < this._variableParameters.Count; idx++) { sb.AppendLine("<variableParameters" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"VariableParameter\">"); VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; aVariableParameter.Reflection(sb); sb.AppendLine("</variableParameters" + idx.ToString(CultureInfo.InvariantCulture) + ">"); } sb.AppendLine("</EntityStatePdu>"); } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } }
public override void Reflection(StringBuilder sb) { sb.AppendLine("<DetonationPdu>"); base.Reflection(sb); try { sb.AppendLine("<explodingEntityID>"); this._explodingEntityID.Reflection(sb); sb.AppendLine("</explodingEntityID>"); sb.AppendLine("<eventID>"); this._eventID.Reflection(sb); sb.AppendLine("</eventID>"); sb.AppendLine("<velocity>"); this._velocity.Reflection(sb); sb.AppendLine("</velocity>"); sb.AppendLine("<locationInWorldCoordinates>"); this._locationInWorldCoordinates.Reflection(sb); sb.AppendLine("</locationInWorldCoordinates>"); sb.AppendLine("<descriptor>"); this._descriptor.Reflection(sb); sb.AppendLine("</descriptor>"); sb.AppendLine("<locationOfEntityCoordinates>"); this._locationOfEntityCoordinates.Reflection(sb); sb.AppendLine("</locationOfEntityCoordinates>"); sb.AppendLine("<detonationResult type=\"byte\">" + this._detonationResult.ToString(CultureInfo.InvariantCulture) + "</detonationResult>"); sb.AppendLine("<variableParameters type=\"byte\">" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + "</variableParameters>"); sb.AppendLine("<pad type=\"ushort\">" + this._pad.ToString(CultureInfo.InvariantCulture) + "</pad>"); for (int idx = 0; idx < this._variableParameters.Count; idx++) { sb.AppendLine("<variableParameters" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"VariableParameter\">"); VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; aVariableParameter.Reflection(sb); sb.AppendLine("</variableParameters" + idx.ToString(CultureInfo.InvariantCulture) + ">"); } sb.AppendLine("</DetonationPdu>"); } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } }
public override void Reflection(StringBuilder sb) { sb.AppendLine("<EntityStateUpdatePdu>"); base.Reflection(sb); try { sb.AppendLine("<entityID>"); this._entityID.Reflection(sb); sb.AppendLine("</entityID>"); sb.AppendLine("<padding1 type=\"byte\">" + this._padding1.ToString(CultureInfo.InvariantCulture) + "</padding1>"); sb.AppendLine("<variableParameters type=\"byte\">" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + "</variableParameters>"); sb.AppendLine("<entityLinearVelocity>"); this._entityLinearVelocity.Reflection(sb); sb.AppendLine("</entityLinearVelocity>"); sb.AppendLine("<entityLocation>"); this._entityLocation.Reflection(sb); sb.AppendLine("</entityLocation>"); sb.AppendLine("<entityOrientation>"); this._entityOrientation.Reflection(sb); sb.AppendLine("</entityOrientation>"); sb.AppendLine("<entityAppearance type=\"uint\">" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + "</entityAppearance>"); for (int idx = 0; idx < this._variableParameters.Count; idx++) { sb.AppendLine("<variableParameters" + idx.ToString(CultureInfo.InvariantCulture) + " type=\"VariableParameter\">"); VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; aVariableParameter.Reflection(sb); sb.AppendLine("</variableParameters" + idx.ToString(CultureInfo.InvariantCulture) + ">"); } sb.AppendLine("</EntityStateUpdatePdu>"); } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } }