예제 #1
0
 private void InitializeActiveResourceSuffixes()
 {
     AddSuffix("NAME", new Suffix <StringValue>(() => activeResource.info.name, "The name of the resource (eg LiguidFuel, ElectricCharge)"));
     AddSuffix("AMOUNT", new Suffix <ScalarValue>(() => activeResource.amount, "The resources currently available"));
     AddSuffix("CAPACITY", new Suffix <ScalarValue>(() => activeResource.maxAmount, "The total storage capacity currently available"));
     AddSuffix("PARTS", new Suffix <ListValue <PartValue> >(() => PartValueFactory.ConstructGeneric(activeResource.parts, shared), "The containers for this resource"));
 }