Beispiel #1
0
        public static DynValue parsespeed(ScriptExecutionContext executionContext, CallbackArguments args)
        {
            DynValue weightstring = args.AsType(0, "parsespeed", DataType.String, false);

            float weight;
            if (!IAttributeCollectionExtension.TryParseSpeed(weightstring.String, out weight))
            {
                return DynValue.Nil;
            }
            return DynValue.NewNumber(weight);
        }
Beispiel #2
0
 /// <summary>
 /// Reads an attributes collection.
 /// </summary>
 public static IAttributeCollection ReadWithSizeAttributesCollection(this System.IO.Stream stream)
 {
     return(IAttributeCollectionExtension.DeserializeWithSize(stream));
 }