BehaviorRandomSelectorBranchModel.cs declarations
Public API declaration excerpts from Packages/io.bitquirky.behavior/Editor/BehaviorRandomSelectorBranchModel.cs.
Source snapshot ad0983d00d77.
On this page
Original file: Packages/io.bitquirky.behavior/Editor/BehaviorRandomSelectorBranchModel.cs
Source file hash: sha256:97f7a7198495a4fdac41c30c4e8dfddb08f5488feb408fc6d01258a71fa30c9f
Only public declaration headers are shown. Implementation bodies, non-public code, and source comments are omitted.
Type: BehaviorRandomSelectorBranchReadout
Section titled “Type: BehaviorRandomSelectorBranchReadout”Original lines: 20-33
Declaration hash: sha256:39f7a0823a2467426b2d909e8e3f8d070a3892599f08441eb36506afdd2eb57b
public enum BehaviorRandomSelectorBranchReadout{}Field: FirstPick
Section titled “Field: FirstPick”Original lines: 23
Declaration hash: sha256:23e854c311de6a40a099fd9f131ca346f70d9375c27f42486a13b196e36bdb28
FirstPick = 0Field: Never
Section titled “Field: Never”Original lines: 26
Declaration hash: sha256:7fea2ad1d3614e247563aa82a0f24593c710b05154bff7199e6c6dbb8648db84
Never = 1Field: NotIncluded
Section titled “Field: NotIncluded”Original lines: 29
Declaration hash: sha256:f1f12d8fe13e74135becf064bc0708fd131cd82304dc1eb4a68208eb5acb5b2d
NotIncluded = 2Field: NotUsed
Section titled “Field: NotUsed”Original lines: 32
Declaration hash: sha256:74f6442679cfa164417a01e88a95851198dae9b4eb5c669b031d2e6532b806c2
NotUsed = 3Type: BehaviorRandomSelectorBranch
Section titled “Type: BehaviorRandomSelectorBranch”Original lines: 45-81
Declaration hash: sha256:8c1b2edb95adb5f83df54f71e36ab0a60cbf2380606d9efbef119e0cdc5d3066
public readonly struct BehaviorRandomSelectorBranch{}Method: BehaviorRandomSelectorBranch(string childId, bool enabled, float? weight, string unusableWeightText, float firstPick, BehaviorRandomSelectorBranchReadout readout)
Section titled “Method: BehaviorRandomSelectorBranch(string childId, bool enabled, float? weight, string unusableWeightText, float firstPick, BehaviorRandomSelectorBranchReadout readout)”Original lines: 48-62
Declaration hash: sha256:b96c4f06d82895fa3766ba29b627a36693aa94282fcd7b6d80df6144b2f1913a
public BehaviorRandomSelectorBranch(string childId, bool enabled, float? weight, string unusableWeightText, float firstPick, BehaviorRandomSelectorBranchReadout readout);Property: ChildId
Section titled “Property: ChildId”Original lines: 65
Declaration hash: sha256:71385b13e76f3d2ee608c93722f8207fd73b3bf9ad6308b69ce9fd32b424f26a
public string ChildId { get; }Property: Enabled
Section titled “Property: Enabled”Original lines: 68
Declaration hash: sha256:fbb82a9b12cb9b23c16586c34e0a5bd68207316c94e1c2f222b1637851422284
public bool Enabled { get; }Property: Weight
Section titled “Property: Weight”Original lines: 71
Declaration hash: sha256:e994cea1a34cf82e88ba6840005400ecc824c54182c66dec6dac974ae5ff1993
public float? Weight { get; }Property: UnusableWeightText
Section titled “Property: UnusableWeightText”Original lines: 74
Declaration hash: sha256:a1f11192ed8042152dcf8a2086bb6a8ec5cfa19527623743c436e3fc706b6dbd
public string UnusableWeightText { get; }Property: FirstPick
Section titled “Property: FirstPick”Original lines: 77
Declaration hash: sha256:21f3ef4e4d29fcace4e558b5d935ee8c917cd92882140ebf396de63902ec8ff2
public float FirstPick { get; }Property: Readout
Section titled “Property: Readout”Original lines: 80
Declaration hash: sha256:84b64c41b000fedf1a75ab8ec63691a2ce1481ad3d0a147915a7d0613d07b2db
public BehaviorRandomSelectorBranchReadout Readout { get; }Type: BehaviorRandomSelectorBranchModel
Section titled “Type: BehaviorRandomSelectorBranchModel”Original lines: 95-339
Declaration hash: sha256:650bdc69bbd5c8fb1b2b1338254e4179617d5c22511f94e375fa24ba71e52e14
public static class BehaviorRandomSelectorBranchModel{}Field: NeverLabel
Section titled “Field: NeverLabel”Original lines: 98
Declaration hash: sha256:873f430dd25b1bdf88bc5654701850d149ca9e3442febdd4abec01381a048637
public const string NeverLabel = "Never";Field: NotIncludedLabel
Section titled “Field: NotIncludedLabel”Original lines: 101
Declaration hash: sha256:b33ac8ad085f45d0f902999b5f3f6b9030b8bf573a7eb075eeedba840b9b7947
public const string NotIncludedLabel = "Not included";Field: NotUsedLabel
Section titled “Field: NotUsedLabel”Original lines: 104
Declaration hash: sha256:dff7d43b74206edd02f088234c7f793b38b9a1e83ecf1a12c521bbfac7a9bf2a
public const string NotUsedLabel = "Not used";Method: Collect(BehaviorSourceAst ast, string selectorId)
Section titled “Method: Collect(BehaviorSourceAst ast, string selectorId)”Original lines: 120-155
Declaration hash: sha256:f7328d305fd20e9f28ead1ed8d18df3859da47098a6e30043d1a2dd7a12ed870
public static List<BehaviorRandomSelectorBranch> Collect(BehaviorSourceAst ast, string selectorId);Method: CountEnabled(IReadOnlyList<BehaviorRandomSelectorBranch> branches)
Section titled “Method: CountEnabled(IReadOnlyList<BehaviorRandomSelectorBranch> branches)”Original lines: 177-185
Declaration hash: sha256:8ba346828b4a4dc0ddc72bac8be57e9eebd056d10973b2a5f0775f5e093ebadc
public static int CountEnabled(IReadOnlyList<BehaviorRandomSelectorBranch> branches);Method: HasPickableBranch(IReadOnlyList<BehaviorRandomSelectorBranch> branches)
Section titled “Method: HasPickableBranch(IReadOnlyList<BehaviorRandomSelectorBranch> branches)”Original lines: 191-203
Declaration hash: sha256:e7f6bcd09888fd981eb67fc5a6b8dcc9890b455361675feadd266924ec4eb18d
public static bool HasPickableBranch(IReadOnlyList<BehaviorRandomSelectorBranch> branches);Method: TotalUsableWeight(IReadOnlyList<BehaviorRandomSelectorBranch> branches)
Section titled “Method: TotalUsableWeight(IReadOnlyList<BehaviorRandomSelectorBranch> branches)”Original lines: 206-219
Declaration hash: sha256:0ad6b2d183715d6f186156bdce7e7dfc43a1003b698eb513ec45dd6322835bce
public static double TotalUsableWeight(IReadOnlyList<BehaviorRandomSelectorBranch> branches);Method: FormatWeight(in BehaviorRandomSelectorBranch branch)
Section titled “Method: FormatWeight(in BehaviorRandomSelectorBranch branch)”Original lines: 222-231
Declaration hash: sha256:9ba058bb1466f1eb808e41401e566a29269532addc0479784f72c0821a387ffc
public static string FormatWeight(in BehaviorRandomSelectorBranch branch);Method: FormatNumber(double value)
Section titled “Method: FormatNumber(double value)”Original lines: 237-246
Declaration hash: sha256:9bbd856f414dbd661be291543174e2cab74c61a71075d2f9605c9edf02cfb67c
public static string FormatNumber(double value);Method: FormatBranchesCardReadout(in BehaviorRandomSelectorBranch branch)
Section titled “Method: FormatBranchesCardReadout(in BehaviorRandomSelectorBranch branch)”Original lines: 249-258
Declaration hash: sha256:bb6d8d769c1eabc974ba2abc968a79a4a803e01d198b5ffe9f288c10e53d6fd3
public static string FormatBranchesCardReadout(in BehaviorRandomSelectorBranch branch);Method: FormatCanvasChip(in BehaviorRandomSelectorBranch branch)
Section titled “Method: FormatCanvasChip(in BehaviorRandomSelectorBranch branch)”Original lines: 263-283
Declaration hash: sha256:1bcd8ae3fd6e31a17eeb45d5bedb56fb6820ac975f5c1bc3715f4fb04d69fb56
public static string FormatCanvasChip(in BehaviorRandomSelectorBranch branch);Method: FormatFirstPickPercent(float share)
Section titled “Method: FormatFirstPickPercent(float share)”Original lines: 318-321
Declaration hash: sha256:ed1eee0a65937cc4de87ee19ef8d02d34b2641519c52b31a2c13f5119e7fcfd0
public static string FormatFirstPickPercent(float share);Method: FormatNextPickPercent(float share)
Section titled “Method: FormatNextPickPercent(float share)”Original lines: 327-330
Declaration hash: sha256:44505a9fc29f8bdf164e97a397bea99b1ed23b0297af752402f22195cd526cff
public static string FormatNextPickPercent(float share);