Exemplo n.º 1
0
        public Librg(Mode mode, ushort tickDelay, Vector3 worldSize, uint maxEntities)
        {
            ctx = new librg_ctx_t();

            ctx.mode         = (UInt16)mode;
            ctx.max_entities = maxEntities;
            ctx.tick_delay   = tickDelay;
            ctx.world_size   = worldSize;

            native.librg_init(ref ctx);
        }
Exemplo n.º 2
0
 [DllImport(DLL_PATH)] public static extern librg_entity_blob_t *librg_entity_blob(ref librg_ctx_t ctx, UInt32 entity);
Exemplo n.º 3
0
 [DllImport(DLL_PATH)] public static extern UInt32 librg_entity_type(ref librg_ctx_t ctx, UInt32 entity);
Exemplo n.º 4
0
 [DllImport(DLL_PATH)] public static extern bool librg_is_server(ref librg_ctx_t ctx);
Exemplo n.º 5
0
 [DllImport(DLL_PATH)] public static extern void librg_entity_iterate(ref librg_ctx_t ctx, UInt64 flags, librg_entity_cb callback);
Exemplo n.º 6
0
 [DllImport(DLL_PATH)] public static extern librg_peer_t *librg_entity_control_get(ref librg_ctx_t ctx, UInt32 entity);
Exemplo n.º 7
0
 [DllImport(DLL_PATH)] public static extern bool librg_entity_visibility_get_for(ref librg_ctx_t ctx, UInt32 entity, UInt32 target);
Exemplo n.º 8
0
 [DllImport(DLL_PATH)] public static extern UInt32 librg_entity_find(ref librg_ctx_t ctx, ref librg_peer_t peer);
Exemplo n.º 9
0
 [DllImport(DLL_PATH)] public static extern void librg_message_send_to(ref librg_ctx_t ctx, UInt16 id, ref librg_peer_t peer, void *data, UIntPtr size);
Exemplo n.º 10
0
 [DllImport(DLL_PATH)] public static extern void librg_network_remove(ref librg_ctx_t ctx, UInt16 id);
Exemplo n.º 11
0
 [DllImport(DLL_PATH)] public static extern void librg_network_add(ref librg_ctx_t ctx, UInt16 id, librg_message_cb callback);
Exemplo n.º 12
0
 [DllImport(DLL_PATH)] public static extern void librg_network_stop(ref librg_ctx_t ctx);
Exemplo n.º 13
0
 [DllImport(DLL_PATH)] public static extern void librg_network_start(ref librg_ctx_t ctx, librg_address_t address);
Exemplo n.º 14
0
 [DllImport(DLL_PATH)] public static extern bool librg_is_connected(ref librg_ctx_t ctx);
Exemplo n.º 15
0
 [DllImport(DLL_PATH)] public static extern bool librg_is_client(ref librg_ctx_t ctx);
Exemplo n.º 16
0
 [DllImport(DLL_PATH)] public static extern void librg_entity_destroy(ref librg_ctx_t ctx, UInt32 entity);
Exemplo n.º 17
0
 [DllImport(DLL_PATH)] public static extern UIntPtr librg_entity_query(ref librg_ctx_t ctx, UInt32 entity, UInt32 **result);
Exemplo n.º 18
0
 [DllImport(DLL_PATH)] public static extern void librg_message_send_instream_except(ref librg_ctx_t ctx, UInt16 id, UInt32 entity, ref librg_peer_t peer, void *data, UIntPtr size);
Exemplo n.º 19
0
 [DllImport(DLL_PATH)] public static extern void librg_entity_visibility_set_for(ref librg_ctx_t ctx, UInt32 entity, UInt32 target, bool state);
Exemplo n.º 20
0
 [DllImport(DLL_PATH)] public static extern UInt64 librg_event_add(ref librg_ctx_t ctx, UInt64 id, librg_event_cb callback);
Exemplo n.º 21
0
 [DllImport(DLL_PATH)] public static extern void librg_entity_control_set(ref librg_ctx_t ctx, UInt32 entity, ref librg_peer_t peer);
Exemplo n.º 22
0
 [DllImport(DLL_PATH)] public static extern void librg_event_trigger(ref librg_ctx_t ctx, UInt64 id, ref librg_event_t evt);
Exemplo n.º 23
0
 [DllImport(DLL_PATH)] public static extern void librg_entity_control_remove(ref librg_ctx_t ctx, UInt32 entity);
Exemplo n.º 24
0
 [DllImport(DLL_PATH)] public static extern void librg_event_remove(ref librg_ctx_t ctx, UInt64 id, UInt64 index);
Exemplo n.º 25
0
 [DllImport(DLL_PATH)] public static extern bool librg_entity_valid(ref librg_ctx_t ctx, UInt32 entity);
Exemplo n.º 26
0
 [DllImport(DLL_PATH)] public static extern void librg_tick(ref librg_ctx_t ctx);