Skip to content

Add support for animate(Object)#2526

Open
wixoaGit wants to merge 1 commit intoOpenDreamProject:masterfrom
wixoaGit:animate_early_finish
Open

Add support for animate(Object)#2526
wixoaGit wants to merge 1 commit intoOpenDreamProject:masterfrom
wixoaGit:animate_early_finish

Conversation

@wixoaGit
Copy link
Member

@wixoaGit wixoaGit commented Mar 9, 2026

animate(Object) ends any running animations early.

I also redid how animate() & rgb() parse their arguments, and fixed atom.transform = null not using the correct identity matrix.

Also redid how `animate()` and `rgb()` parse their arguments
@boring-cyborg boring-cyborg bot added Compiler Involves the OpenDream compiler Runtime Involves the OpenDream server/runtime labels Mar 9, 2026
switch (info.Type) {
case DMCallArgumentsType.FromStackKeyed:
Debug.Assert(_values.Length % 2 == 0);
break;

Check warning

Code scanning / InspectCode

Dereference of a possibly null reference. Warning

Dereference of a possibly null reference

Array.Fill(arguments, DreamValue.Null);
for (int i = 0; i < listValues.Count; i++) {
var value = listValues[i];

Check warning

Code scanning / InspectCode

Use of obsolete symbol Warning

CS0618: Method 'OpenDreamRuntime.Objects.Types.DreamList.GetValues()' is obsolete: 'Deprecated. Use EnumerateValues() instead.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compiler Involves the OpenDream compiler Runtime Involves the OpenDream server/runtime size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant