Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #2377 - Added cid suffix to PartValue #2378

Merged
merged 1 commit into from Feb 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/kOS/Suffixed/Part/PartValue.cs
Expand Up @@ -43,6 +43,7 @@ private void PartInitializeSuffixes()
AddSuffix("FUELCROSSFEED", new Suffix<BooleanValue>(() => Part.fuelCrossFeed));
AddSuffix("TITLE", new Suffix<StringValue>(() => Part.partInfo.title));
AddSuffix("STAGE", new Suffix<ScalarValue>(() => Part.inverseStage));
AddSuffix("CID", new Suffix<StringValue>(() => Part.craftID.ToString()));
AddSuffix("UID", new Suffix<StringValue>(() => Part.flightID.ToString()));
AddSuffix("ROTATION", new Suffix<Direction>(() => new Direction(Part.transform.rotation)));
AddSuffix("POSITION", new Suffix<Vector>(() => new Vector(Part.transform.position - Shared.Vessel.CoMD)));
Expand Down