aboutsummaryrefslogtreecommitdiff
path: root/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'content.go')
-rw-r--r--content.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/content.go b/content.go
index c7faed0..54dd27a 100644
--- a/content.go
+++ b/content.go
@@ -430,6 +430,24 @@ func muxContent(userName string) (itemDefs []mt.ItemDef, aliases []struct{ Alias
return
}
+func (sc *serverConn) globalParam0(p0 *mt.Content) {
+ if sc.client() != nil && sc.client().p0Map != nil {
+ if sc.client().p0Map[sc.name] != nil {
+ *p0 = sc.client().p0Map[sc.name][*p0]
+ }
+ }
+}
+
+func (cc *clientConn) srvParam0(p0 *mt.Content) string {
+ if cc.p0SrvMap != nil {
+ srv := cc.p0SrvMap[*p0]
+ *p0 = srv.param0
+ return srv.name
+ }
+
+ return ""
+}
+
func isDefaultTexture(s string) bool {
list := []string{
"",