Class DynamicVehicle
A dynamic vehicle based on single lua script.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class DynamicVehicle : Vehicle
Constructors
DynamicVehicle(String)
Creates a new dynamic profile based on the given lua script.
Declaration
public DynamicVehicle(string script)
Parameters
System.String
script
|
Properties
MetaWhiteList
Gets the attributes whitelist.
Declaration
public override HashSet<string> MetaWhiteList { get; }
Property Value
HashSet<System.String>
|
Overrides
Name
Gets the name.
Declaration
public override sealed string Name { get; }
Property Value
System.String
|
Overrides
Normalize
Gets the normalize flag.
Declaration
public override bool Normalize { get; }
Property Value
System.Boolean
|
Overrides
Parameters
Gets the parameters.
Declaration
public override IReadonlyAttributeCollection Parameters { get; }
Property Value
IReadonlyAttributeCollection
|
Overrides
ProfileFunctions
Gets all the profile functions.
Declaration
protected IEnumerable<object> ProfileFunctions { get; }
Property Value
IEnumerable<System.Object>
|
ProfileWhiteList
Gets the attributes whitelist.
Declaration
public override HashSet<string> ProfileWhiteList { get; }
Property Value
HashSet<System.String>
|
Overrides
Script
Gets the script.
Declaration
public Script Script { get; }
Property Value
Script
|
VehicleTypes
Gets the vehicle types.
Declaration
public override sealed string[] VehicleTypes { get; }
Property Value
System.String[]
|
Overrides
Methods
AddToWhiteList(IAttributeCollection, Whitelist)
Declaration
public override bool AddToWhiteList(IAttributeCollection attributes, Whitelist whitelist)
Parameters
IAttributeCollection
attributes
|
Whitelist
whitelist
|
Returns
System.Boolean
|
Overrides
DoSerialize(Stream)
Serializes the content of this vehicle.
Declaration
protected override long DoSerialize(Stream stream)
Parameters
Stream
stream
|
Returns
System.Int64
|
Overrides
FactorAndSpeed(IAttributeCollection, Whitelist)
Pushes the attributes through this profiles and adds used keys in the given whitelist.
Declaration
public override FactorAndSpeed FactorAndSpeed(IAttributeCollection attributes, Whitelist whiteList)
Parameters
IAttributeCollection
attributes
|
Whitelist
whiteList
|
Returns
FactorAndSpeed
|
Overrides
Load(String)
Loads the vehicle from the given script.
Declaration
public static DynamicVehicle Load(string script)
Parameters
System.String
script
|
Returns
DynamicVehicle
|
LoadFromEmbeddedResource(Assembly, String)
Loads the vehicle from the embedded resources.
Declaration
public static DynamicVehicle LoadFromEmbeddedResource(Assembly assembly, string embeddedResource)
Parameters
Assembly
assembly
|
System.String
embeddedResource
|
Returns
DynamicVehicle
|
LoadFromStream(Stream)
Loads the vehicle from the given stream.
Declaration
public static DynamicVehicle LoadFromStream(Stream stream)
Parameters
Stream
stream
|
Returns
DynamicVehicle
|
LoadWithSize(Stream)
Loads the vehicle from the given stream using the current position as the size.
Declaration
public static DynamicVehicle LoadWithSize(Stream stream)
Parameters
Stream
stream
|
Returns
DynamicVehicle
|