private static bool NewPropertyCallbackTest(string name, TCODValueType type, TCODValue value)
 {
     switch (type)
     {
         case TCODValueType.TCOD_TYPE_BOOL:
             deal_damage_defined = true;
             break;
         case TCODValueType.TCOD_TYPE_COLOR:
             if (name.ToString() == "color")
                 color_defined = true;
             else
                 damaged_color_defined = true;
             break;
         case TCODValueType.TCOD_TYPE_DICE:
             damages_defined = true;
             break;
         case TCODValueType.TCOD_TYPE_FLOAT:
             weight_defined = true;
             break;
         case TCODValueType.TCOD_TYPE_INT:
             cost_defined = true;
             break;
         case TCODValueType.TCOD_TYPE_STRING:
             damage_type_defined = true;
             break;
         case TCODValueType.TCOD_TYPE_VALUELIST00:
             list_defined = true;
             break;
         default:
             return false;
     }
     return true;
 }
Exemple #2
0
 private bool NativePropertyCallback(StringBuilder name, TCODValueType type, TCODValue v)
 {
     return(np(GetStringIfValid(name), type, v));
 }
 private bool NativePropertyCallback(StringBuilder name, TCODValueType type, TCODValue v)
 {
     return np(GetStringIfValid(name), type, v);
 }