public void write(Writer writer) { writer.Write(unknown1); bgColor1.write(writer); bgColor2.write(writer); writer.Write(unknownBytes); writer.writeRSDKString(libraryName); writer.Write(unknown2); }
public void write(Writer writer) { switch (type) { case VariableTypes.UINT8: writer.Write(value_uint8); break; case VariableTypes.UINT16: writer.Write(value_uint16); break; case VariableTypes.UINT32: writer.Write(value_uint32); break; case VariableTypes.INT8: writer.Write(value_int8); break; case VariableTypes.INT16: writer.Write(value_int16); break; case VariableTypes.INT32: writer.Write(value_int32); break; case VariableTypes.ENUM: writer.Write(value_enum); break; case VariableTypes.BOOL: writer.writeBool32(value_bool); break; case VariableTypes.STRING: writer.writeRSDKUTF16String(value_string); break; case VariableTypes.VECTOR2: writer.Write(value_vector2.x); writer.Write(value_vector2.y); break; case VariableTypes.UNKNOWN: writer.Write(value_unknown); break; case VariableTypes.COLOR: value_color.write(writer); break; } }