DoubleDeez / MDFramework

A multiplayer C# game framework for Godot 3.4 Mono.
https://discord.gg/UH49eHK
MIT License
77 stars 13 forks source link

Feature: Custom MDRpc calls that use game clock #33

Closed Beider closed 4 years ago

Beider commented 4 years ago

Instead of OneShot mode for [MDReplicated] attribute instead we will add a custom MDRpc that can use the game clock and ensure the message arrives at the correct time. This is a followup to #17

Beider commented 4 years ago

So I finished this locally now, I will create a pull request for this as soon as you verify the currently pending pull request.

Currently I just updated the MDRpc, MDRpcId, MDRpcUnreliable and MDRpcUnreliableId in the node extensions so they will automatically do this if game clock is active.

I am wondering if it is worth extending this functionality to all the MDRset functions as well.

DoubleDeez commented 4 years ago

I think it makes sense to add the functionality to MDRset too.

Beider commented 4 years ago

Alright I will start on this now, shouldn't take too long. I should be ready to do a pull request in an hour or two.