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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompilation into correct C# code #2

Open
Albeoris opened this issue May 1, 2024 · 0 comments
Open

Decompilation into correct C# code #2

Albeoris opened this issue May 1, 2024 · 0 comments

Comments

@Albeoris
Copy link
Owner

Albeoris commented May 1, 2024

    public IEnumerable<IAwaitable> Init(IServices executionContext, EVT_ALEX1_TS_CARGO_0 evt)
    {
        @ctx = executionContext;
        @evt = evt;
        var @act = ServiceId.Actors[@ctx];
        var @sys = ServiceId.System[@ctx];

        // Before
        MSPEED(_speed: 15)
        yield return @sys.Wait(frameDuration: 25); // WAIT
        
        🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗🠗

        // After
        @act.SetWalkingSpeed(speed: 15); // MSPEED
        yield return @sys.Wait(frameDuration: 25); // WAIT
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant