Struct godot_ggrs_wrapper::GodotGGRSSyncTestSession [−][src]
pub struct GodotGGRSSyncTestSession { /* fields omitted */ }
Expand description
A Godot implementation of SyncTestSession
Implementations
Creates a SyncTestSession,
call this when you want to start setting up a SyncTestSession
takes the total number of players and the check distance as parameters
pub fn set_frame_delay(
&mut self,
_owner: &Node,
frame_delay: u32,
player_handle: PlayerHandle
)
pub fn set_frame_delay(
&mut self,
_owner: &Node,
frame_delay: u32,
player_handle: PlayerHandle
)
Sets SyncTestSession::set_frame_delay() of specified handle.
Errors
- Will print an ERR_MESSAGE_NO_SESSION_MADE error if a session has not been made
This function will advance the frame using an array of all the inputs given as a parameter (inputs are currently an int in Godot). Before using this function you have to set the callback node and make sure it has the following callback functions implemented
Errors
- Will print an ERR_MESSAGE_NO_SESSION_MADE error if a session has not been made
- Will print an ERR_MESSAGE_NO_CALLBACK_NODE error if a callback node has not been set
Sets the callback node that will be called when using Self::advance_frame()
Trait Implementations
type UserData = DefaultUserData<GodotGGRSSyncTestSession>
type UserData = DefaultUserData<GodotGGRSSyncTestSession>
User-data wrapper type of the class. Read more
The name of the class. Read more
Function that creates a value of Self
, used for the script-instance. The default
implementation simply panics. Read more
Register any exported properties to Godot.
fn new_instance() -> Instance<Self, Unique> where
Self::Base: Instanciable,
fn new_instance() -> Instance<Self, Unique> where
Self::Base: Instanciable,
Convenience method to create an Instance<Self, Unique>
. This is a new Self::Base
with the script attached. Read more