Netstream.NetStreamSender.AddNode C# (CSharp) Method

AddNode() public method

public AddNode ( String sourceId, ulong timeId, String nodeId ) : void
sourceId String
timeId ulong
nodeId String
return void
        public void AddNode(String sourceId, ulong timeId, String nodeId)
        {
            NetStreamStorage buff = new NetStreamStorage().
                EncodeArray(_streamIdArray).
                EncodeEvent(NetStreamEvent.AddNode).
                EncodeString(sourceId).
                EncodeNative(timeId).
                EncodeString(nodeId);
            DoSend(buff);
        }

Usage Example

Example #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::AddNode