mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-12 08:43:26 +01:00
VChat: Redone chat output done in Vue.js
This commit is contained in:
@@ -29,6 +29,7 @@ You can set verify to TRUE if you want send() to sleep until the client has the
|
||||
//This proc sends the asset to the client, but only if it needs it.
|
||||
//This proc blocks(sleeps) unless verify is set to false
|
||||
/proc/send_asset(var/client/client, var/asset_name, var/verify = TRUE)
|
||||
<<<<<<< HEAD
|
||||
if(!istype(client))
|
||||
if(ismob(client))
|
||||
var/mob/M = client
|
||||
@@ -40,6 +41,11 @@ You can set verify to TRUE if you want send() to sleep until the client has the
|
||||
|
||||
else
|
||||
return 0
|
||||
=======
|
||||
client = CLIENT_FROM_VAR(client) // Will get client from a mob, or accept a client, or return null
|
||||
if(!istype(client))
|
||||
return 0
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
if(client.cache.Find(asset_name) || client.sending.Find(asset_name))
|
||||
return 0
|
||||
@@ -73,6 +79,7 @@ You can set verify to TRUE if you want send() to sleep until the client has the
|
||||
|
||||
//This proc blocks(sleeps) unless verify is set to false
|
||||
/proc/send_asset_list(var/client/client, var/list/asset_list, var/verify = TRUE)
|
||||
<<<<<<< HEAD
|
||||
if(!istype(client))
|
||||
if(ismob(client))
|
||||
var/mob/M = client
|
||||
@@ -84,6 +91,11 @@ You can set verify to TRUE if you want send() to sleep until the client has the
|
||||
|
||||
else
|
||||
return 0
|
||||
=======
|
||||
client = CLIENT_FROM_VAR(client) // Will get client from a mob, or accept a client, or return null
|
||||
if(!istype(client))
|
||||
return 0
|
||||
>>>>>>> 715de43... VChat: Redone chat output done in Vue.js (#6761)
|
||||
|
||||
var/list/unreceived = asset_list - (client.cache + client.sending)
|
||||
if(!unreceived || !unreceived.len)
|
||||
|
||||
Reference in New Issue
Block a user