Netstream.NetStreamSender.AddNodeAttribute C# (CSharp) Method

AddNodeAttribute() public method

public AddNodeAttribute ( String sourceId, ulong timeId, String nodeId, String attribute, Object value ) : void
sourceId String
timeId ulong
nodeId String
attribute String
value Object
return void
        public void AddNodeAttribute(String sourceId, ulong timeId, String nodeId,
            String attribute, Object value)
        {
            NetStreamStorage buff = new NetStreamStorage().
                EncodeArray(_streamIdArray).
                EncodeEvent(NetStreamEvent.AddNodeAttr).
                EncodeString(sourceId).
                EncodeNative(timeId).
                EncodeString(nodeId).
                EncodeString(attribute).
                EncodeValueWithType(value);
            DoSend(buff);
        }

Usage Example

Beispiel #1
0
        private static void AddNodeWithLabel(NetStreamSender stream, string sourceId, ref ulong timeId, string name)
        {
            if (lastNode != null)
                stream.RemoveNodeAttribute(sourceId, timeId++, lastNode, "ui.class");

            stream.AddNode(sourceId, timeId++, name);
            stream.AddNodeAttribute(sourceId, timeId++, name, "ui.label", name);
            stream.AddNodeAttribute(sourceId, timeId++, name, "ui.class", "active");
            lastNode = name;
        }
All Usage Examples Of Netstream.NetStreamSender::AddNodeAttribute