Commit 1b96e7ac authored by perfectdicky's avatar perfectdicky

allow player change ai port

parent 37070efb
...@@ -208,7 +208,7 @@ public class AIRoom : WindowServantSP ...@@ -208,7 +208,7 @@ public class AIRoom : WindowServantSP
serverProcess = new System.Diagnostics.Process(); serverProcess = new System.Diagnostics.Process();
serverProcess.StartInfo.UseShellExecute = false; serverProcess.StartInfo.UseShellExecute = false;
serverProcess.StartInfo.FileName = Directory.GetCurrentDirectory() + "/AI.Server.exe"; serverProcess.StartInfo.FileName = Directory.GetCurrentDirectory() + "/AI.Server.exe";
serverProcess.StartInfo.Arguments = "7911 -1 5 0 F " + (nocheck ? "T" : "F") + " " + (noshuffle ? "T" : "F") + " 8000 5 1 0 0"; serverProcess.StartInfo.Arguments = UIHelper.getByName<UIInput>(gameObject, "port_").value + " -1 5 0 F " + (nocheck ? "T" : "F") + " " + (noshuffle ? "T" : "F") + " 8000 5 1 0 0";
serverProcess.StartInfo.CreateNoWindow = true; serverProcess.StartInfo.CreateNoWindow = true;
serverProcess.StartInfo.RedirectStandardOutput = true; serverProcess.StartInfo.RedirectStandardOutput = true;
serverProcess.Start(); serverProcess.Start();
......
...@@ -944,6 +944,7 @@ Transform: ...@@ -944,6 +944,7 @@ Transform:
- {fileID: 498754} - {fileID: 498754}
- {fileID: 486844086439661037} - {fileID: 486844086439661037}
- {fileID: 420506} - {fileID: 420506}
- {fileID: 2683477298345656066}
m_Father: {fileID: 439006} m_Father: {fileID: 439006}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...@@ -2193,7 +2194,7 @@ MonoBehaviour: ...@@ -2193,7 +2194,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3018 startingRenderQueue: 3019
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 mClipping: 3
...@@ -3005,6 +3006,79 @@ MonoBehaviour: ...@@ -3005,6 +3006,79 @@ MonoBehaviour:
type: 0 type: 0
volume: 1 volume: 1
pitch: 1 pitch: 1
--- !u!1 &2483520720252878740
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2683477298345656066}
- component: {fileID: 125107926919112003}
- component: {fileID: 7993870931586384434}
m_Layer: 5
m_Name: port_
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2683477298345656066
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2483520720252878740}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 680, y: -90, z: 0}
m_LocalScale: {x: 2, y: 2, z: 1}
m_Children:
- {fileID: 6324260406795912973}
m_Father: {fileID: 419960}
m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &125107926919112003
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2483520720252878740}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ac5060295fbd39b4a88d20d0c83d925e, type: 3}
m_Name:
m_EditorClassIdentifier:
label: {fileID: 8854858260436286459}
inputType: 0
onReturnKey: 0
keyboardType: 0
hideInput: 0
validation: 0
characterLimit: 0
savedAs:
selectOnTab: {fileID: 0}
activeTextColor: {r: 1, g: 1, b: 1, a: 1}
caretColor: {r: 1, g: 1, b: 1, a: 0.8}
selectionColor: {r: 0.20588237, g: 0.40851915, b: 1, a: 0.5}
onSubmit: []
onChange: []
mValue: 7911
--- !u!65 &7993870931586384434
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2483520720252878740}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 124, y: 34, z: 0}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &2744625272430709819 --- !u!1 &2744625272430709819
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -3093,6 +3167,104 @@ MonoBehaviour: ...@@ -3093,6 +3167,104 @@ MonoBehaviour:
mFixedAspect: 0 mFixedAspect: 0
mPixelSize: 0.7 mPixelSize: 0.7
nextSprite: {fileID: 0} nextSprite: {fileID: 0}
--- !u!1 &3107185213772409632
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6324260406795912973}
- component: {fileID: 8854858260436286459}
m_Layer: 5
m_Name: '!default'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6324260406795912973
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3107185213772409632}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -97.4, y: 8.7, z: 0}
m_LocalScale: {x: 0.76761943, y: 0.8344795, z: 1.0588}
m_Children: []
m_Father: {fileID: 2683477298345656066}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8854858260436286459
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3107185213772409632}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e9d0b5f3bbe925a408bd595c79d0bf63, type: 3}
m_Name:
m_EditorClassIdentifier:
leftAnchor:
target: {fileID: 0}
relative: 0
absolute: 0
rightAnchor:
target: {fileID: 0}
relative: 1
absolute: 0
bottomAnchor:
target: {fileID: 0}
relative: 0
absolute: 0
topAnchor:
target: {fileID: 0}
relative: 1
absolute: -12
updateAnchors: 2
mColor: {r: 1, g: 1, b: 1, a: 0.40392157}
mPivot: 0
mWidth: 120
mHeight: 22
mDepth: 21
autoResizeBoxCollider: 0
hideIfOffScreen: 0
keepAspectRatio: 0
aspectRatio: 5.4545455
keepCrispWhenShrunk: 1
mTrueTypeFont: {fileID: 12800000, guid: f775853fdfd14bb47934543e95c3bae3, type: 3}
mFont: {fileID: 0}
mText: "\u9884\u8BBE\u7AEF\u53E3: 7911"
mFontSize: 18
mFontStyle: 0
mAlignment: 1
mEncoding: 0
mMaxLineCount: 1
mEffectStyle: 0
mEffectColor: {r: 0, g: 0, b: 0, a: 1}
mSymbols: 1
mEffectDistance: {x: 1, y: 1}
mOverflow: 1
mMaterial: {fileID: 0}
mApplyGradient: 1
mGradientTop: {r: 1, g: 1, b: 1, a: 1}
mGradientBottom: {r: 0.7, g: 0.7, b: 0.7, a: 1}
mSpacingX: 0
mSpacingY: 0
mUseFloatSpacing: 0
mFloatSpacingX: 0
mFloatSpacingY: 0
mOverflowEllipsis: 0
mShrinkToFit: 0
mMaxLineWidth: 0
mMaxLineHeight: 0
mLineWidth: 0
mMultiline: 1
--- !u!1 &3213360695101377719 --- !u!1 &3213360695101377719
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment