kOS.Safe.Persistence.Volume.InitializeVolumeSuffixes C# (CSharp) Method

InitializeVolumeSuffixes() private method

private InitializeVolumeSuffixes ( ) : void
return void
        private void InitializeVolumeSuffixes()
        {
            AddSuffix("FREESPACE" , new Suffix<ScalarValue>(() => FreeSpace));
            AddSuffix("CAPACITY" , new Suffix<ScalarValue>(() => Capacity));
            AddSuffix("NAME" , new SetSuffix<StringValue>(() => Name, (newName) => Name = newName));
            AddSuffix("RENAMEABLE" , new Suffix<BooleanValue>(() => Renameable));
            AddSuffix("POWERREQUIREMENT" , new Suffix<ScalarValue>(() => RequiredPower()));

            AddSuffix("ROOT" , new Suffix<VolumeDirectory>(() => Root));
            AddSuffix("EXISTS" , new OneArgsSuffix<BooleanValue, StringValue>(path => Exists(path)));
            AddSuffix("FILES" , new Suffix<Lexicon>(ListAsLexicon));
            AddSuffix("CREATE" , new OneArgsSuffix<VolumeFile, StringValue>(path => CreateFile(path)));
            AddSuffix("CREATEDIR" , new OneArgsSuffix<VolumeDirectory, StringValue>(path => CreateDirectory(path)));
            AddSuffix("OPEN" , new OneArgsSuffix<Structure, StringValue>(path => OpenSafe(path)));
            AddSuffix("DELETE" , new OneArgsSuffix<BooleanValue, StringValue>(path => Delete(path)));
        }