Skip to content

Wizzard033/Enet-Squirrel-Binding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Here is an example of how to load it up (depends on http://scrat.sourceforge.net/)

// Make sure to perform first time setup only once
static bool isFirstRun = true;
if (isFirstRun) {
    // Initialize ENet
    if (enet_initialize() != 0) {
        // An error occurred while initializing ENet
    }

    // Indicate that we've ran this first time setup
    isFirstRun = false;
}

// Initialize and register the enet namespace in the VM
Sqrat::Table enetNamespace(v);
Sqrat::RootTable(v).Bind(_SC("enet"), enetNamespace);

// Initialize and register the ENet Squirrel library in the VM
RegisterEnetLib(v, enetNamespace);

** This binding will not be maintained by its developer, but merge requests will be reviewed **

About

This is a binding of ENet to the Squirrel scripting language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages