ModifyLight() public method

public ModifyLight ( int i, int j, float &r, float &g, float &b ) : void
i int
j int
r float
g float
b float
return void
コード例 #1
0
        //in Terraria.Lighting.PreRenderPhase after label after if statement checking Main.tileLighted call
        //  TileLoader.ModifyLight(n, num17, tile.type, ref num18, ref num19, ref num20);
        public static void ModifyLight(int i, int j, int type, ref float r, ref float g, ref float b)
        {
            if (!Main.tileLighted[type])
            {
                return;
            }
            ModTile modTile = GetTile(type);

            if (modTile != null)
            {
                modTile.ModifyLight(i, j, ref r, ref g, ref b);
            }
            foreach (GlobalTile globalTile in globalTiles)
            {
                globalTile.ModifyLight(i, j, type, ref r, ref g, ref b);
            }
        }