Skip to content

Commit 230159b

Browse files
committed
Added replication modes. Renamed some functions
1 parent c3cb95d commit 230159b

3 files changed

Lines changed: 275 additions & 174 deletions

File tree

fusion/api/fusion.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ This is a generated file. Do not modify. Created using https://github.com/britzl
3939
---@field MASTER_CLIENT_PLAYER_ID number
4040
---@field PLUGIN_PLAYER_ID number
4141
---@field OBJECT_OWNER_PLAYER_ID number
42+
---@field REPLICATION_MODE_NONE number
43+
---@field REPLICATION_MODE_AUTO number
4244
---@field EVENT_OBJECT_READY number
4345
---@field EVENT_SUB_OBJECT_CREATED number
4446
---@field EVENT_OBJECT_DESTROYED number
@@ -120,9 +122,9 @@ function fusion.despawn(id) end
120122
---@param map number
121123
---@param factory_url string
122124
---@param owner_mode number
123-
---@param script_properties table
125+
---@param options table
124126
---@param id string?
125-
function fusion.create_object(map,factory_url,owner_mode,script_properties,id) end
127+
function fusion.create_object(map,factory_url,owner_mode,options,id) end
126128
---@param id string?
127129
function fusion.destroy_object(id) end
128130
---@param index number

fusion/api/fusion.script_api

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
type: string
249249
- name: owner_mode
250250
type: number
251-
- name: script_properties
251+
- name: options
252252
type: table
253253
- name: id
254254
type: string
@@ -689,6 +689,16 @@
689689
desc: |
690690
OBJECT_OWNER_PLAYER_ID
691691

692+
- name: REPLICATION_MODE_NONE
693+
type: number
694+
desc: |
695+
REPLICATION_MODE_NONE
696+
697+
- name: REPLICATION_MODE_AUTO
698+
type: number
699+
desc: |
700+
REPLICATION_MODE_AUTO
701+
692702
- name: EVENT_OBJECT_READY
693703
type: number
694704
desc: |

0 commit comments

Comments
 (0)