public virtual void transformBlock(string name) { blockProperty = blockDictionary.Dictionary[name]; /* * id[0] = blockType.mainNum; * id[1] = blockType.subNum; * * this.name = name; * durability = blockType.durability; * tool = Tool.Hand;//預設值 */ }
/* * public Tool Tool * { * get{return tool;} * } */ public Block(string name) { blockProperty = blockDictionary.Dictionary[name]; durability = blockProperty.durability; /* * id = new int[2]; * * BlockProperty blockType = blockDictionary.Dictionary[name]; * id[0] = blockType.mainNum; * id[1] = blockType.subNum; * * this.name = name; * durability = blockType.durability; * tool = Tool.Hand;//預設值 */ }