Urho.Serializable Class

Base class for objects with automatic serialization through attributes.

See Also: Serializable

Syntax

public class Serializable : UrhoObject

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Serializable are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.Serializable which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Serializable, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Serializable linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

[read-only]
NetworkStateNetworkState*. Return the network attribute state, if allocated.
[read-only]
NumAttributesUInt32. Return number of attributes.
[read-only]
NumNetworkAttributesUInt32. Return number of network replication attributes.
TemporaryBoolean. Flags whether the Node or Component is flagged as temporary or not.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

AllocateNetworkState()
Allocate network attribute state.
ApplyAttributes()
Apply attribute changes that can not be applied immediately. Called after scene load or a network update.
GetAttribute(String) : Variant
Return attribute value by name. Return empty if not found.
GetAttribute(UInt32) : Variant
Return attribute value by index. Return empty if illegal index.
GetAttributeDefault(String) : Variant
Return attribute default value by name. Return empty if not found.
GetAttributeDefault(UInt32) : Variant
Return attribute default value by index. Return empty if illegal index.
GetInterceptNetworkUpdate(String) : Boolean
Return whether an attribute's network updates are being intercepted.
Load(File, Boolean) : Boolean
Load(MemoryBuffer, Boolean) : Boolean
LoadXml(XmlElement, Boolean) : Boolean
MarkNetworkUpdate()
Mark for attribute check on the next network update.
ReadDeltaUpdate(File) : Boolean
ReadDeltaUpdate(MemoryBuffer) : Boolean
ReadLatestDataUpdate(File) : Boolean
ReadLatestDataUpdate(MemoryBuffer) : Boolean
RemoveInstanceDefault()
Remove instance's default values if they are set previously.
ResetToDefault()
Reset all editable attributes to their default values.
Save(File) : Boolean
Save(MemoryBuffer) : Boolean
SaveDefaultAttributes() : Boolean
Return whether should save default-valued attributes into XML. Default false.
SaveXml(XmlElement) : Boolean
SetAttribute(String, Int32) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, Single) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, String) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, Color) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, IntRect) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, IntVector2) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, Matrix3x4) : Boolean
SetAttribute(String, Matrix4) : Boolean
SetAttribute(String, Quaternion) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, Vector2) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, Vector3) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(String, Vector4) : Boolean
Set attribute by name. Return true if successfully set.
SetAttribute(UInt32, Int32) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, Single) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, String) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, Color) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, IntRect) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, IntVector2) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, Matrix3x4) : Boolean
SetAttribute(UInt32, Matrix4) : Boolean
SetAttribute(UInt32, Quaternion) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, Vector2) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, Vector3) : Boolean
Set attribute by index. Return true if successfully set.
SetAttribute(UInt32, Vector4) : Boolean
Set attribute by index. Return true if successfully set.
SetInterceptNetworkUpdate(String, Boolean)
Enable interception of an attribute from network updates. Intercepted attributes are sent as events instead of applying directly. This can be used to implement client side prediction.
SubscribeToInterceptNetworkUpdate(Action<InterceptNetworkUpdateEventArgs>) : Subscription
Subscribes to the InterceptNetworkUpdate event raised by the Serializable.
SubscribeToTemporaryChanged(Action<TemporaryChangedEventArgs>) : Subscription
Subscribes to the TemporaryChanged event raised by the Serializable.
WriteInitialDeltaUpdate(File, Byte)
WriteInitialDeltaUpdate(MemoryBuffer, Byte)
WriteLatestDataUpdate(File, Byte)
WriteLatestDataUpdate(MemoryBuffer, Byte)

Public Events