Ejemplo n.º 1
0
 public static Offset <PlayerComponent> CreatePlayerComponent(FlatBufferBuilder builder,
                                                              PlayerState playerState = PlayerState.Idling)
 {
     builder.StartObject(1);
     PlayerComponent.AddPlayerState(builder, playerState);
     return(PlayerComponent.EndPlayerComponent(builder));
 }
Ejemplo n.º 2
0
 public static PlayerComponent GetRootAsPlayerComponent(ByteBuffer _bb, PlayerComponent obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }