Exemple #1
0
        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;//預設值
             */
        }
Exemple #2
0
        /*
         * 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;//預設值
             */
        }