Fetch the repository succeeded.
package main
import (
"fmt"
"sync"
"github.com/xiaonanln/goworld/engine/common"
"github.com/xiaonanln/typeconv"
)
// ClientSpace is the space on client
type ClientSpace struct {
sync.Mutex
owner *ClientBot
ID common.EntityID
Kind int
Attrs clientAttrs
destroyed bool
}
func newClientSpace(owner *ClientBot, entityid common.EntityID, data map[string]interface{}) *ClientSpace {
space := &ClientSpace{
owner: owner,
ID: entityid,
Attrs: data,
}
space.Kind = int(typeconv.Int(data["_K"]))
return space
}
func (space *ClientSpace) String() string {
return fmt.Sprintf("ClientSpace<%d|%s>", space.Kind, space.ID)
}
// Destroy the client space
func (space *ClientSpace) Destroy() {
if space.destroyed {
return
}
space.destroyed = true
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。