コード例 #1
0
    public void Init(PlayerModel model)
    {
        playerModel = model;
        for (int i = 1; i <= 45; i++)
        {
            items.Add(i, null);
        }


        items[1] = new BowItem()
        {
            Count = 1
        };
        items[2] = new BackswordItem()
        {
            Count = 1
        };
        items[3] = new GrenadeItem()
        {
            Count = 999
        };
        items[4] = new PickItem()
        {
            Count = 1
        };
        items[5] = new TorchItem()
        {
            Count = 100
        };
        items[6] = new BlowBlockItem(0, 2)
        {
            Count = 10
        };

        items[7] = new AxeItem()
        {
            Count = 1
        };

        items[8] = new BlowBlockItem(0, (short)TileTypeEnum.Brick)
        {
            Count = 100
        };
        items[9] = new BlowBlockItem(0, (short)TileTypeEnum.Stairs)
        {
            Count = 1000
        };
        items[10] = new BlowBlockItem(0, (short)TileTypeEnum.Iron)
        {
            Count = 100
        };
        items[11] = new BlowBlockItem(0, (short)TileTypeEnum.Meat)
        {
            Count = 100
        };
        items[12] = new BlowBlockItem(0, (short)TileTypeEnum.Med)
        {
            Count = 100
        };
        items[13] = new BlowBlockItem(0, (short)TileTypeEnum.Bone)
        {
            Count = 100
        };

        RootContext.Instance.Player.UpdateBag(this);
    }
コード例 #2
0
ファイル: AxeItem.cs プロジェクト: sethnel99/HungerGame
 public AxeItem(AxeItem other)
     : base(other)
 {
 }