Skip to content

Instantly share code, notes, and snippets.

@AndrewWeston9
Last active October 6, 2017 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewWeston9/560e14047bd907b5a5db2f6455ac2e23 to your computer and use it in GitHub Desktop.
Save AndrewWeston9/560e14047bd907b5a5db2f6455ac2e23 to your computer and use it in GitHub Desktop.
WorldManager.cs Snippet: Placing a block in the world.
public struct brickClass
{
/// stores the type of brick.
public int brickType;
/// Stores the current health of the brick. 0 would mean it is destroyed.
public int brickHealth;
/// Stores the connection id for the player that placed the brick. Is -1 if generated by the server.
public int playerConnectionId;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment