Skip to content

Instantly share code, notes, and snippets.

@miou-gh
Last active April 26, 2020 16:33
Show Gist options
  • Save miou-gh/b886ffd9008bcdc598c7a53af4c3cb1c to your computer and use it in GitHub Desktop.
Save miou-gh/b886ffd9008bcdc598c7a53af4c3cb1c to your computer and use it in GitHub Desktop.
A class containing custom messages for Everybody Edits Worlds.
using EEUniverse.Library;
public static class CustomMessage
{
/// <summary>
/// <b>(Client->Server)</b> Register a sound for the specified user. <br></br><br></br> <b>Message Args:</b>
/// <br> <b>int</b> Player Id </br>
/// <br> <b>int</b> Sound Id </br>
/// <br> <b>byte[]</b> Sound Data </br>
/// </summary>
public const MessageType RegisterSound = (MessageType)123;
/// <summary>
/// <b>(Server->Client)</b> A response indicating that the sound has been successfully registered. <br></br><br></br> <b>Message Args:</b>
/// <br> <b>int</b> Player Id </br>
/// <br> <b>int</b> Sound Id </br>
/// </summary>
public const MessageType SoundRegistered = (MessageType)122;
/// <summary>
/// <b>(Client->Server)</b> Set the state of a sound for the specified user. <br></br><br></br> <b>Message Args:</b>
/// <br> <b>int</b> Player Id </br>
/// <br> <b>int</b> Sound Id </br>
/// <br> <b>int</b> <see cref="SoundState"/> </br>
/// </summary>
public const MessageType SetSoundState = (MessageType)121;
/// <summary>
/// <b>(Client->Server)</b> Query whether a sound has been fully registered by the specified user. <br></br> NOTE: You will receive a <see cref="SoundRegistered"/> message if the specified sound has been registered. <br></br><br></br> <b>Message Args:</b>
/// <br> <b>int</b> Player Id </br>
/// </summary>
public const MessageType QuerySoundRegistration = (MessageType)120;
/// <summary>
/// <b>(Server->Client)</b> A response indicating that a coin has been collected in the world. <br></br><br></br> <b>Message Args:</b>
/// <br> <b>int</b> Player Id </br>
/// <br> <b>int</b> Total Coins </br>
/// <br> <b>int</b> Coin X </br>
/// <br> <b>int</b> Coin Y </br>
/// </summary>
public const MessageType CoinCollected = (MessageType)119;
/// <summary>
/// <b>(Client->Server)</b> A message indicating you have collected a coin. <br></br><br></br> <b>Message Args:</b>
/// <br> <b>int</b> Total Coins </br>
/// <br> <b>int</b> Coin X </br>
/// <br> <b>int</b> Coin Y </br>
/// </summary>
public const MessageType CollectCoin = (MessageType)119;
public const MessageType LoadLevel = (MessageType)127;
public static class SoundState
{
public const int Stop = 0;
public const int Start = 1;
public const int Pause = 2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment