CEngineSharp_Editor.World.Item.Save C# (CSharp) Method

Save() public method

public Save ( string filePath ) : void
filePath string
return void
        public void Save(string filePath)
        {
            using (FileStream fs = new FileStream(filePath + "/Items/" + this.Name + ".dat", FileMode.OpenOrCreate))
            {
                using (BinaryWriter binaryWriter = new BinaryWriter(fs))
                {
                    binaryWriter.Write(this.Name);
                    binaryWriter.Write(this.TextureNumber);
                }
            }
        }