LynnaLab.TilesetHeaderGroup.SetMappingsData C# (CSharp) Method

SetMappingsData() public method

public SetMappingsData ( int i, byte value ) : void
i int
value byte
return void
        public void SetMappingsData(int i, byte value)
        {
            if (mappingsDataFile == null)
                throw new Exception("Tileset header group 0x" + Index.ToString("X") + " does not reference mapping data.");
            mappingsDataFile.Seek(i, SeekOrigin.Begin);
            mappingsDataFile.WriteByte(value);
        }

Usage Example

コード例 #1
0
ファイル: Area.cs プロジェクト: turbo3001/LynnaLab
 public void SetSubTileIndex(int index, int x, int y, byte value)
 {
     tilesetHeaderGroup.SetMappingsData(index * 8 + y * 2 + x, value);
 }