Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Added some Blocks+Block functionality #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SonOfTheStars
Copy link

Added:
-BlockStone
-BlockCobble

Changed:
-Block.cs:
-added ToolQuality:int
-added MetaData:int

-BlockStone
-BlockCobble

Changed:
-Block.cs:
 -added ToolQuality:int
 -added MetaData:int
@@ -24,6 +24,10 @@ public abstract class Block : Item
private static Dictionary<short, IsSolidOnFaceHandler> IsSolidOnFaceHandlers { get; set; }
private static Dictionary<short, BlockMinedHandler> BlockMinedHandlers { get; set; }
private static Dictionary<short, BlockRightClickedHandler> BlockRightClickedHandlers { get; set; }
//HarvestLevesl: 0=Hand, 1=Wooden Tool, 2= Stone Tool, 3= Iron Tool, 4= Diamond Tool
private int ToolQuality = 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use an enum please.

@ddevault
Copy link
Owner

ddevault commented Sep 9, 2014

Overall, this looks great. Just a couple of minor quips and it's good to go.

@SonOfTheStars
Copy link
Author

goin to rework that tomorrow

@JBou
Copy link
Contributor

JBou commented Sep 9, 2014

I think you should rename the blocks from BlockStone to StoneBlock, because all other Blocks have this format.

@ddevault
Copy link
Owner

ddevault commented Sep 9, 2014

Thanks @JBou, I agree.

@SonOfTheStars
Copy link
Author

Hmmm might be better to use the name before block indeed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants