mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
587 lines
23 KiB
C#
587 lines
23 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using ConformalDecals.MaterialProperties;
|
|
using ConformalDecals.Util;
|
|
using UnityEngine;
|
|
|
|
namespace ConformalDecals {
|
|
public class ModuleConformalDecal : PartModule {
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
public enum DecalScaleMode {
|
|
HEIGHT,
|
|
WIDTH,
|
|
AVERAGE,
|
|
AREA,
|
|
MINIMUM,
|
|
MAXIMUM
|
|
}
|
|
|
|
// CONFIGURABLE VALUES
|
|
|
|
[KSPField] public string shader = "ConformalDecals/Decal/Standard";
|
|
|
|
[KSPField] public string decalFront = "Decal-Front";
|
|
[KSPField] public string decalBack = "Decal-Back";
|
|
[KSPField] public string decalModel = "Decal-Model";
|
|
[KSPField] public string decalProjector = "Decal-Projector";
|
|
[KSPField] public string decalCollider = "Decal-Collider";
|
|
|
|
// Parameters
|
|
|
|
[KSPField] public bool scaleAdjustable = true;
|
|
[KSPField] public float defaultScale = 1;
|
|
[KSPField] public Vector2 scaleRange = new Vector2(0, 5);
|
|
|
|
[KSPField] public DecalScaleMode scaleMode = DecalScaleMode.HEIGHT;
|
|
|
|
[KSPField] public bool depthAdjustable = true;
|
|
[KSPField] public float defaultDepth = 0.1f;
|
|
[KSPField] public Vector2 depthRange = new Vector2(0, 2);
|
|
|
|
[KSPField] public bool opacityAdjustable = true;
|
|
[KSPField] public float defaultOpacity = 1;
|
|
[KSPField] public Vector2 opacityRange = new Vector2(0, 1);
|
|
|
|
[KSPField] public bool cutoffAdjustable = true;
|
|
[KSPField] public float defaultCutoff = 0.5f;
|
|
[KSPField] public Vector2 cutoffRange = new Vector2(0, 1);
|
|
|
|
[KSPField] public bool useBaseNormal = true;
|
|
[KSPField] public float defaultWear = 100;
|
|
[KSPField] public Vector2 wearRange = new Vector2(0, 100);
|
|
|
|
[KSPField] public Rect tileRect = new Rect(-1, -1, 0, 0);
|
|
[KSPField] public Vector2 tileSize;
|
|
[KSPField] public int tileIndex = -1;
|
|
|
|
[KSPField] public bool updateBackScale = true;
|
|
[KSPField] public bool selectableInFlight;
|
|
|
|
// INTERNAL VALUES
|
|
[KSPField(guiName = "#LOC_ConformalDecals_gui-scale", guiActive = false, guiActiveEditor = true, isPersistant = true, guiFormat = "F2", guiUnits = "m"),
|
|
UI_FloatRange()]
|
|
public float scale = 1.0f;
|
|
|
|
[KSPField(guiName = "#LOC_ConformalDecals_gui-depth", guiActive = false, guiActiveEditor = true, isPersistant = true, guiFormat = "F2", guiUnits = "m"),
|
|
UI_FloatRange()]
|
|
public float depth = 0.2f;
|
|
|
|
[KSPField(guiName = "#LOC_ConformalDecals_gui-opacity", guiActive = false, guiActiveEditor = true, isPersistant = true, guiFormat = "P0"),
|
|
UI_FloatRange()]
|
|
public float opacity = 1.0f;
|
|
|
|
[KSPField(guiName = "#LOC_ConformalDecals_gui-cutoff", guiActive = false, guiActiveEditor = true, isPersistant = true, guiFormat = "P0"),
|
|
UI_FloatRange()]
|
|
public float cutoff = 0.5f;
|
|
|
|
[KSPField(guiName = "#LOC_ConformalDecals_gui-wear", guiActive = false, guiActiveEditor = true, isPersistant = true, guiFormat = "F0"),
|
|
UI_FloatRange()]
|
|
public float wear = 100;
|
|
|
|
[KSPField(isPersistant = true)] public bool projectMultiple; // reserved for future features. do not modify
|
|
|
|
[KSPField] public MaterialPropertyCollection materialProperties;
|
|
|
|
[KSPField] public Transform decalFrontTransform;
|
|
[KSPField] public Transform decalBackTransform;
|
|
[KSPField] public Transform decalModelTransform;
|
|
[KSPField] public Transform decalProjectorTransform;
|
|
[KSPField] public Transform decalColliderTransform;
|
|
|
|
[KSPField] public Material backMaterial;
|
|
[KSPField] public Vector2 backTextureBaseScale;
|
|
|
|
private const int DecalQueueMin = 2100;
|
|
private const int DecalQueueMax = 2400;
|
|
private static int _decalQueueCounter = -1;
|
|
|
|
private List<ProjectionTarget> _targets;
|
|
|
|
private bool _isAttached;
|
|
private Matrix4x4 _orthoMatrix;
|
|
|
|
private Material _decalMaterial;
|
|
private Material _previewMaterial;
|
|
private MeshRenderer _boundsRenderer;
|
|
|
|
private int DecalQueue {
|
|
get {
|
|
_decalQueueCounter++;
|
|
if (_decalQueueCounter > DecalQueueMax || _decalQueueCounter < DecalQueueMin) {
|
|
_decalQueueCounter = DecalQueueMin;
|
|
}
|
|
|
|
return _decalQueueCounter;
|
|
}
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void OnAwake() {
|
|
base.OnAwake();
|
|
|
|
if (materialProperties == null) {
|
|
materialProperties = ScriptableObject.CreateInstance<MaterialPropertyCollection>();
|
|
}
|
|
else {
|
|
materialProperties = ScriptableObject.Instantiate(materialProperties);
|
|
}
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void OnLoad(ConfigNode node) {
|
|
try {
|
|
// SETUP TRANSFORMS
|
|
decalFrontTransform = part.FindModelTransform(decalFront);
|
|
if (decalFrontTransform == null) throw new FormatException($"Could not find decalFront transform: '{decalFront}'.");
|
|
|
|
decalBackTransform = part.FindModelTransform(decalBack);
|
|
if (decalBackTransform == null) throw new FormatException($"Could not find decalBack transform: '{decalBack}'.");
|
|
|
|
decalModelTransform = part.FindModelTransform(decalModel);
|
|
if (decalModelTransform == null) throw new FormatException($"Could not find decalModel transform: '{decalModel}'.");
|
|
|
|
decalProjectorTransform = part.FindModelTransform(decalProjector);
|
|
if (decalProjectorTransform == null) throw new FormatException($"Could not find decalProjector transform: '{decalProjector}'.");
|
|
|
|
decalColliderTransform = part.FindModelTransform(decalCollider);
|
|
if (decalColliderTransform == null) throw new FormatException($"Could not find decalCollider transform: '{decalCollider}'.");
|
|
|
|
// SETUP BACK MATERIAL
|
|
if (updateBackScale) {
|
|
var backRenderer = decalBackTransform.GetComponent<MeshRenderer>();
|
|
if (backRenderer == null) {
|
|
this.LogError($"Specified decalBack transform {decalBack} has no renderer attached! Setting updateBackScale to false.");
|
|
updateBackScale = false;
|
|
}
|
|
else {
|
|
backMaterial = backRenderer.material;
|
|
if (backMaterial == null) {
|
|
this.LogError($"Specified decalBack transform {decalBack} has a renderer but no material! Setting updateBackScale to false.");
|
|
updateBackScale = false;
|
|
}
|
|
else {
|
|
if (backTextureBaseScale == default) backTextureBaseScale = backMaterial.GetTextureScale(PropertyIDs._MainTex);
|
|
}
|
|
}
|
|
}
|
|
|
|
// PARSE MATERIAL PROPERTIES
|
|
|
|
// set shader
|
|
materialProperties.SetShader(shader);
|
|
materialProperties.AddOrGetProperty<MaterialKeywordProperty>("DECAL_BASE_NORMAL").value = useBaseNormal;
|
|
|
|
// add keyword nodes
|
|
foreach (var keywordNode in node.GetNodes("KEYWORD")) {
|
|
materialProperties.ParseProperty<MaterialKeywordProperty>(keywordNode);
|
|
}
|
|
|
|
// add texture nodes
|
|
foreach (var textureNode in node.GetNodes("TEXTURE")) {
|
|
materialProperties.ParseProperty<MaterialTextureProperty>(textureNode);
|
|
}
|
|
|
|
// add float nodes
|
|
foreach (var floatNode in node.GetNodes("FLOAT")) {
|
|
materialProperties.ParseProperty<MaterialTextureProperty>(floatNode);
|
|
}
|
|
|
|
// add color nodes
|
|
foreach (var colorNode in node.GetNodes("COLOR")) {
|
|
materialProperties.ParseProperty<MaterialColorProperty>(colorNode);
|
|
}
|
|
|
|
// handle texture tiling parameters
|
|
var tileString = node.GetValue("tile");
|
|
if (!string.IsNullOrEmpty(tileString)) {
|
|
var tileValid = ParseExtensions.TryParseRect(tileString, out tileRect);
|
|
if (!tileValid) throw new FormatException($"Invalid rect value for tile '{tileString}'");
|
|
}
|
|
|
|
if (tileRect.x >= 0) {
|
|
materialProperties.UpdateTile(tileRect);
|
|
}
|
|
else if (tileIndex >= 0) {
|
|
materialProperties.UpdateTile(tileIndex, tileSize);
|
|
}
|
|
}
|
|
catch (Exception e) {
|
|
this.LogException("Exception parsing partmodule", e);
|
|
}
|
|
|
|
UpdateMaterials();
|
|
|
|
foreach (var keyword in _decalMaterial.shaderKeywords) {
|
|
this.Log($"keyword: {keyword}");
|
|
}
|
|
|
|
if (HighLogic.LoadedSceneIsEditor) {
|
|
UpdateTweakables();
|
|
}
|
|
|
|
if (HighLogic.LoadedSceneIsGame) {
|
|
UpdateScale();
|
|
}
|
|
else {
|
|
scale = defaultScale;
|
|
depth = defaultDepth;
|
|
opacity = defaultOpacity;
|
|
cutoff = defaultCutoff;
|
|
wear = defaultWear;
|
|
|
|
// QUEUE PART FOR ICON FIXING IN VAB
|
|
DecalIconFixer.QueuePart(part.name);
|
|
}
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void OnIconCreate() {
|
|
UpdateScale();
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void OnStart(StartState state) {
|
|
materialProperties.RenderQueue = DecalQueue;
|
|
|
|
_boundsRenderer = decalProjectorTransform.GetComponent<MeshRenderer>();
|
|
|
|
// handle tweakables
|
|
if (HighLogic.LoadedSceneIsEditor) {
|
|
GameEvents.onEditorPartEvent.Add(OnEditorEvent);
|
|
GameEvents.onVariantApplied.Add(OnVariantApplied);
|
|
|
|
UpdateTweakables();
|
|
}
|
|
}
|
|
|
|
public override void OnStartFinished(StartState state) {
|
|
// handle game events
|
|
if (HighLogic.LoadedSceneIsGame) {
|
|
// set initial attachment state
|
|
if (part.parent == null) {
|
|
OnDetach();
|
|
}
|
|
else {
|
|
OnAttach();
|
|
}
|
|
}
|
|
|
|
// handle flight events
|
|
if (HighLogic.LoadedSceneIsFlight) {
|
|
GameEvents.onPartWillDie.Add(OnPartWillDie);
|
|
|
|
if (part.parent == null) part.explode();
|
|
|
|
Part.layerMask |= 1 << DecalConfig.DecalLayer;
|
|
decalColliderTransform.gameObject.layer = DecalConfig.DecalLayer;
|
|
|
|
if (!selectableInFlight || !DecalConfig.SelectableInFlight) {
|
|
decalColliderTransform.GetComponent<Collider>().enabled = false;
|
|
_boundsRenderer.enabled = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual void OnDestroy() {
|
|
// remove GameEvents
|
|
if (HighLogic.LoadedSceneIsEditor) {
|
|
GameEvents.onEditorPartEvent.Remove(OnEditorEvent);
|
|
GameEvents.onVariantApplied.Remove(OnVariantApplied);
|
|
}
|
|
|
|
if (HighLogic.LoadedSceneIsFlight) {
|
|
GameEvents.onPartWillDie.Remove(OnPartWillDie);
|
|
}
|
|
|
|
// remove from preCull delegate
|
|
Camera.onPreCull -= Render;
|
|
|
|
// destroy material properties object
|
|
Destroy(materialProperties);
|
|
}
|
|
|
|
protected void OnSizeTweakEvent(BaseField field, object obj) {
|
|
// scale or depth values have been changed, so update scale
|
|
// and update projection matrices if attached
|
|
UpdateScale();
|
|
|
|
foreach (var counterpart in part.symmetryCounterparts) {
|
|
var decal = counterpart.GetComponent<ModuleConformalDecal>();
|
|
decal.UpdateScale();
|
|
}
|
|
}
|
|
|
|
protected void OnMaterialTweakEvent(BaseField field, object obj) {
|
|
materialProperties.SetOpacity(opacity);
|
|
materialProperties.SetCutoff(cutoff);
|
|
if (useBaseNormal) {
|
|
materialProperties.SetWear(wear);
|
|
}
|
|
|
|
foreach (var counterpart in part.symmetryCounterparts) {
|
|
var decal = counterpart.GetComponent<ModuleConformalDecal>();
|
|
decal.materialProperties.SetOpacity(opacity);
|
|
decal.materialProperties.SetCutoff(cutoff);
|
|
if (useBaseNormal) {
|
|
decal.materialProperties.SetWear(wear);
|
|
}
|
|
}
|
|
}
|
|
|
|
protected void OnVariantApplied(Part eventPart, PartVariant variant) {
|
|
if (_isAttached && eventPart == part.parent) {
|
|
UpdateTargets();
|
|
}
|
|
}
|
|
|
|
protected void OnEditorEvent(ConstructionEventType eventType, Part eventPart) {
|
|
if (this.part != eventPart && !part.symmetryCounterparts.Contains(eventPart)) return;
|
|
switch (eventType) {
|
|
case ConstructionEventType.PartAttached:
|
|
OnAttach();
|
|
break;
|
|
case ConstructionEventType.PartDetached:
|
|
OnDetach();
|
|
break;
|
|
case ConstructionEventType.PartOffsetting:
|
|
case ConstructionEventType.PartRotating:
|
|
UpdateScale();
|
|
break;
|
|
}
|
|
}
|
|
|
|
protected void OnPartWillDie(Part willDie) {
|
|
if (willDie == part.parent) {
|
|
this.Log("Parent part about to be destroyed! Killing decal part.");
|
|
part.Die();
|
|
}
|
|
}
|
|
|
|
protected virtual void OnAttach() {
|
|
if (part.parent == null) {
|
|
this.LogError("Attach function called but part has no parent!");
|
|
_isAttached = false;
|
|
return;
|
|
}
|
|
|
|
_isAttached = true;
|
|
|
|
// hide model
|
|
decalModelTransform.gameObject.SetActive(false);
|
|
|
|
// unhide projector
|
|
decalProjectorTransform.gameObject.SetActive(true);
|
|
|
|
// add to preCull delegate
|
|
Camera.onPreCull += Render;
|
|
|
|
UpdateMaterials();
|
|
UpdateTargets();
|
|
UpdateScale();
|
|
}
|
|
|
|
protected virtual void OnDetach() {
|
|
_isAttached = false;
|
|
|
|
// unhide model
|
|
decalModelTransform.gameObject.SetActive(true);
|
|
|
|
// hide projector
|
|
decalProjectorTransform.gameObject.SetActive(false);
|
|
|
|
// remove from preCull delegate
|
|
Camera.onPreCull -= Render;
|
|
|
|
UpdateMaterials();
|
|
UpdateScale();
|
|
}
|
|
|
|
protected void UpdateScale() {
|
|
scale = Mathf.Max(0.01f, scale);
|
|
depth = Mathf.Max(0.01f, depth);
|
|
var aspectRatio = Mathf.Max(0.01f, materialProperties.AspectRatio);
|
|
Vector2 size;
|
|
|
|
switch (scaleMode) {
|
|
default:
|
|
case DecalScaleMode.HEIGHT:
|
|
size = new Vector2(scale / aspectRatio, scale);
|
|
break;
|
|
case DecalScaleMode.WIDTH:
|
|
size = new Vector2(scale, scale * aspectRatio);
|
|
break;
|
|
case DecalScaleMode.AVERAGE:
|
|
var width1 = 2 * scale / (1 + aspectRatio);
|
|
size = new Vector2(width1, width1 * aspectRatio);
|
|
break;
|
|
case DecalScaleMode.AREA:
|
|
var width2 = Mathf.Sqrt(scale / aspectRatio);
|
|
size = new Vector2(width2, width2 * aspectRatio);
|
|
break;
|
|
case DecalScaleMode.MINIMUM:
|
|
if (aspectRatio > 1) goto case DecalScaleMode.WIDTH;
|
|
else goto case DecalScaleMode.HEIGHT;
|
|
case DecalScaleMode.MAXIMUM:
|
|
if (aspectRatio > 1) goto case DecalScaleMode.HEIGHT;
|
|
else goto case DecalScaleMode.WIDTH;
|
|
}
|
|
|
|
// update material scale
|
|
materialProperties.UpdateScale(size);
|
|
|
|
if (_isAttached) {
|
|
// update orthogonal matrix
|
|
_orthoMatrix = Matrix4x4.identity;
|
|
_orthoMatrix[0, 3] = 0.5f;
|
|
_orthoMatrix[1, 3] = 0.5f;
|
|
|
|
decalProjectorTransform.localScale = new Vector3(size.x, size.y, depth);
|
|
|
|
// update projection
|
|
foreach (var target in _targets) {
|
|
target.Project(_orthoMatrix, decalProjectorTransform, _boundsRenderer.bounds, useBaseNormal);
|
|
}
|
|
}
|
|
else {
|
|
// rescale preview model
|
|
decalModelTransform.localScale = new Vector3(size.x, size.y, (size.x + size.y) / 2);
|
|
|
|
// update back material scale
|
|
if (updateBackScale) {
|
|
backMaterial.SetTextureScale(PropertyIDs._MainTex, new Vector2(size.x * backTextureBaseScale.x, size.y * backTextureBaseScale.y));
|
|
}
|
|
}
|
|
}
|
|
|
|
protected virtual void UpdateMaterials() {
|
|
materialProperties.UpdateMaterials();
|
|
materialProperties.SetOpacity(opacity);
|
|
materialProperties.SetCutoff(cutoff);
|
|
if (useBaseNormal) {
|
|
materialProperties.SetWear(wear);
|
|
}
|
|
|
|
_decalMaterial = materialProperties.DecalMaterial;
|
|
_previewMaterial = materialProperties.PreviewMaterial;
|
|
|
|
if (!_isAttached) decalFrontTransform.GetComponent<MeshRenderer>().material = _previewMaterial;
|
|
}
|
|
|
|
protected void UpdateTargets() {
|
|
if (_targets == null) {
|
|
_targets = new List<ProjectionTarget>();
|
|
}
|
|
else {
|
|
_targets.Clear();
|
|
}
|
|
|
|
// find all valid renderers
|
|
var renderers = part.parent.FindModelComponents<MeshRenderer>();
|
|
foreach (var renderer in renderers) {
|
|
// skip disabled renderers
|
|
if (renderer.gameObject.activeInHierarchy == false) continue;
|
|
|
|
// skip transparentFX layer, which causes issues with Waterfall
|
|
if (renderer.gameObject.layer == 1) continue;
|
|
|
|
// skip blacklisted shaders
|
|
if (DecalConfig.IsBlacklisted(renderer.material.shader)) continue;
|
|
|
|
var meshFilter = renderer.GetComponent<MeshFilter>();
|
|
if (meshFilter == null) continue; // object has a meshRenderer with no filter, invalid
|
|
var mesh = meshFilter.mesh;
|
|
if (mesh == null) continue; // object has a null mesh, invalid
|
|
|
|
// create new ProjectionTarget to represent the renderer
|
|
var target = new ProjectionTarget(renderer, mesh);
|
|
|
|
// add the target to the list
|
|
_targets.Add(target);
|
|
}
|
|
}
|
|
|
|
protected virtual void UpdateTweakables() {
|
|
// setup tweakable fields
|
|
var scaleField = Fields[nameof(scale)];
|
|
var depthField = Fields[nameof(depth)];
|
|
var opacityField = Fields[nameof(opacity)];
|
|
var cutoffField = Fields[nameof(cutoff)];
|
|
var wearField = Fields[nameof(wear)];
|
|
|
|
scaleField.guiActiveEditor = scaleAdjustable;
|
|
depthField.guiActiveEditor = depthAdjustable;
|
|
opacityField.guiActiveEditor = opacityAdjustable;
|
|
cutoffField.guiActiveEditor = cutoffAdjustable;
|
|
wearField.guiActiveEditor = useBaseNormal;
|
|
|
|
var steps = 20;
|
|
|
|
if (scaleAdjustable) {
|
|
var minValue = Mathf.Max(Mathf.Epsilon, scaleRange.x);
|
|
var maxValue = Mathf.Max(minValue, scaleRange.y);
|
|
|
|
var scaleEditor = (UI_FloatRange) scaleField.uiControlEditor;
|
|
scaleEditor.minValue = minValue;
|
|
scaleEditor.maxValue = maxValue;
|
|
scaleEditor.stepIncrement = 0.01f; //1cm
|
|
scaleEditor.onFieldChanged = OnSizeTweakEvent;
|
|
}
|
|
|
|
if (depthAdjustable) {
|
|
var minValue = Mathf.Max(Mathf.Epsilon, depthRange.x);
|
|
var maxValue = Mathf.Max(minValue, depthRange.y);
|
|
|
|
var depthEditor = (UI_FloatRange) depthField.uiControlEditor;
|
|
depthEditor.minValue = minValue;
|
|
depthEditor.maxValue = maxValue;
|
|
depthEditor.stepIncrement = 0.01f; //1cm
|
|
depthEditor.onFieldChanged = OnSizeTweakEvent;
|
|
}
|
|
|
|
if (opacityAdjustable) {
|
|
var minValue = Mathf.Max(0, opacityRange.x);
|
|
var maxValue = Mathf.Max(minValue, opacityRange.y);
|
|
maxValue = Mathf.Min(1, maxValue);
|
|
|
|
var opacityEditor = (UI_FloatRange) opacityField.uiControlEditor;
|
|
opacityEditor.minValue = minValue;
|
|
opacityEditor.maxValue = maxValue;
|
|
opacityEditor.stepIncrement = (maxValue - minValue) / steps;
|
|
opacityEditor.onFieldChanged = OnMaterialTweakEvent;
|
|
}
|
|
|
|
if (cutoffAdjustable) {
|
|
var minValue = Mathf.Max(0, cutoffRange.x);
|
|
var maxValue = Mathf.Max(minValue, cutoffRange.y);
|
|
maxValue = Mathf.Min(1, maxValue);
|
|
|
|
var cutoffEditor = (UI_FloatRange) cutoffField.uiControlEditor;
|
|
cutoffEditor.minValue = minValue;
|
|
cutoffEditor.maxValue = maxValue;
|
|
cutoffEditor.stepIncrement = (maxValue - minValue) / steps;
|
|
cutoffEditor.onFieldChanged = OnMaterialTweakEvent;
|
|
}
|
|
|
|
if (useBaseNormal) {
|
|
var minValue = Mathf.Max(0, wearRange.x);
|
|
var maxValue = Mathf.Max(minValue, wearRange.y);
|
|
|
|
var wearEditor = (UI_FloatRange) wearField.uiControlEditor;
|
|
wearEditor.minValue = minValue;
|
|
wearEditor.maxValue = maxValue;
|
|
wearEditor.stepIncrement = (maxValue - minValue) / steps;
|
|
wearEditor.onFieldChanged = OnMaterialTweakEvent;
|
|
}
|
|
}
|
|
|
|
public void Render(Camera camera) {
|
|
if (!_isAttached) return;
|
|
|
|
// render on each target object
|
|
foreach (var target in _targets) {
|
|
target.Render(_decalMaterial, part.mpb, camera);
|
|
}
|
|
}
|
|
}
|
|
} |