seperated client and server state, input mapper
This commit is contained in:
parent
44f63f8deb
commit
d5b77a9044
10 changed files with 104 additions and 16 deletions
|
@ -1,13 +1,16 @@
|
|||
import { start } from "ReplicatedStorage/ecs"
|
||||
import { serverState } from "ReplicatedStorage/ecs/state"
|
||||
import { Host } from "ReplicatedStorage/hosts"
|
||||
import { setEnvironment } from "ReplicatedStorage/idAttribute"
|
||||
import { getEvent } from "ReplicatedStorage/remotes"
|
||||
|
||||
const HOST = Host.Server
|
||||
|
||||
const ServerState = new serverState()
|
||||
|
||||
// We only do this here at the moment to create a dummy event for replication.
|
||||
// In the future this will be created by the replication system.
|
||||
getEvent("EcsReplication")
|
||||
|
||||
setEnvironment(HOST)
|
||||
start(HOST)
|
||||
start(HOST, ServerState)
|
Loading…
Add table
Add a link
Reference in a new issue