Skip to content
Bit Quirky Behavior Trees and
State Machines

Search documentation

All topics and APIs

Close returns focus to Search.

What are you looking for?

Try a common topic or enter a complete API identifier.

Browse the reference instead

Esc closes · Tab reaches results · Enter opens the focused link

v0.6.0
Menu

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.

Original lines: 20-33

Declaration hash: sha256:39f7a0823a2467426b2d909e8e3f8d070a3892599f08441eb36506afdd2eb57b

C#
public enum BehaviorRandomSelectorBranchReadout
{
}

Original lines: 23

Declaration hash: sha256:23e854c311de6a40a099fd9f131ca346f70d9375c27f42486a13b196e36bdb28

C#
FirstPick = 0

Original lines: 26

Declaration hash: sha256:7fea2ad1d3614e247563aa82a0f24593c710b05154bff7199e6c6dbb8648db84

C#
Never = 1

Original lines: 29

Declaration hash: sha256:f1f12d8fe13e74135becf064bc0708fd131cd82304dc1eb4a68208eb5acb5b2d

C#
NotIncluded = 2

Original lines: 32

Declaration hash: sha256:74f6442679cfa164417a01e88a95851198dae9b4eb5c669b031d2e6532b806c2

C#
NotUsed = 3

Original lines: 45-81

Declaration hash: sha256:8c1b2edb95adb5f83df54f71e36ab0a60cbf2380606d9efbef119e0cdc5d3066

C#
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

C#
public BehaviorRandomSelectorBranch(string childId, bool enabled, float? weight, string unusableWeightText, float firstPick, BehaviorRandomSelectorBranchReadout readout);

Original lines: 65

Declaration hash: sha256:71385b13e76f3d2ee608c93722f8207fd73b3bf9ad6308b69ce9fd32b424f26a

C#
public string ChildId { get; }

Original lines: 68

Declaration hash: sha256:fbb82a9b12cb9b23c16586c34e0a5bd68207316c94e1c2f222b1637851422284

C#
public bool Enabled { get; }

Original lines: 71

Declaration hash: sha256:e994cea1a34cf82e88ba6840005400ecc824c54182c66dec6dac974ae5ff1993

C#
public float? Weight { get; }

Original lines: 74

Declaration hash: sha256:a1f11192ed8042152dcf8a2086bb6a8ec5cfa19527623743c436e3fc706b6dbd

C#
public string UnusableWeightText { get; }

Original lines: 77

Declaration hash: sha256:21f3ef4e4d29fcace4e558b5d935ee8c917cd92882140ebf396de63902ec8ff2

C#
public float FirstPick { get; }

Original lines: 80

Declaration hash: sha256:84b64c41b000fedf1a75ab8ec63691a2ce1481ad3d0a147915a7d0613d07b2db

C#
public BehaviorRandomSelectorBranchReadout Readout { get; }

Original lines: 95-339

Declaration hash: sha256:650bdc69bbd5c8fb1b2b1338254e4179617d5c22511f94e375fa24ba71e52e14

C#
public static class BehaviorRandomSelectorBranchModel
{
}

Original lines: 98

Declaration hash: sha256:873f430dd25b1bdf88bc5654701850d149ca9e3442febdd4abec01381a048637

C#
public const string NeverLabel = "Never";

Original lines: 101

Declaration hash: sha256:b33ac8ad085f45d0f902999b5f3f6b9030b8bf573a7eb075eeedba840b9b7947

C#
public const string NotIncludedLabel = "Not included";

Original lines: 104

Declaration hash: sha256:dff7d43b74206edd02f088234c7f793b38b9a1e83ecf1a12c521bbfac7a9bf2a

C#
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

C#
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

C#
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

C#
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

C#
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

C#
public static string FormatWeight(in BehaviorRandomSelectorBranch branch);

Original lines: 237-246

Declaration hash: sha256:9bbd856f414dbd661be291543174e2cab74c61a71075d2f9605c9edf02cfb67c

C#
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

C#
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

C#
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

C#
public static string FormatFirstPickPercent(float share);

Method: FormatNextPickPercent(float share)

Section titled “Method: FormatNextPickPercent(float share)”

Original lines: 327-330

Declaration hash: sha256:44505a9fc29f8bdf164e97a397bea99b1ed23b0297af752402f22195cd526cff

C#
public static string FormatNextPickPercent(float share);
Full-size image