コード例 #1
0
ファイル: GetDataHandlers.cs プロジェクト: CXUtk/TShock
        private static bool OnLiquidSet(int tilex, int tiley, byte amount, byte type)
        {
            if (LiquidSet == null)
                return false;

            var args = new LiquidSetEventArgs
            {
                TileX = tilex,
                TileY = tiley,
                Amount = amount,
                Type = type,
            };
            LiquidSet.Invoke(null, args);
            return args.Handled;
        }
コード例 #2
0
ファイル: GetDataHandlers.cs プロジェクト: stevenh/TShock
        private static bool OnLiquidSet(int tilex, int tiley, byte liquid, bool lava)
        {
            if (LiquidSet == null)
                return false;

            var args = new LiquidSetEventArgs
            {
                TileX = tilex,
                TileY = tiley,
                Liquid = liquid,
                Lava = lava,
            };
            LiquidSet.Invoke(null, args);
            return args.Handled;
        }