Example #1
0
 public static Offset <NetworkObjectState> CreateNetworkObjectState(FlatBufferBuilder builder,
                                                                    ushort networkId = 0,
                                                                    slyther.flatbuffers.NetworkObjectStateType state_type = slyther.flatbuffers.NetworkObjectStateType.NONE,
                                                                    int stateOffset = 0)
 {
     builder.StartObject(3);
     NetworkObjectState.AddState(builder, stateOffset);
     NetworkObjectState.AddNetworkId(builder, networkId);
     NetworkObjectState.AddStateType(builder, state_type);
     return(NetworkObjectState.EndNetworkObjectState(builder));
 }
Example #2
0
 public static NetworkObjectState GetRootAsNetworkObjectState(ByteBuffer _bb, NetworkObjectState obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }