Пример #1
0
func (client *Player) PySet_appearance(value py.Object) error {
	fn := pybind.Wrap(client.SetAppearance)
	args, err := py.PackTuple(value)
	if err != nil {
		return err
	}
	_, err = fn(args, nil)
	return err
}
Пример #2
0
func (p *Profile) Py_deserialize(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(func(obj string) {
		err := p.UnmarshalJSON([]byte(obj))
		if err != nil {
			panic(err)
		}
	})
	return fn(args, nil)
}
Пример #3
0
func (m *PyModule) PyGet_ctx() (py.Object, error) {
	fn := pybind.Wrap(func() py.Object {
		if ctx, ok := m.Module.Ctx().(*PyContext); ok {
			return ctx
		}
		py.None.Incref()
		return py.None
	})
	return fn(nil, nil)
}
Пример #4
0
func (p *Profile) Py_serialize(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(func() string {
		obj, err := json.Marshal(p)
		if err != nil {
			panic(err)
		}
		return string(obj)
	})
	return fn(args, nil)
}
Пример #5
0
func (pos *Absolute) Py_local_to(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(pos.LocalTo)
	return fn(args, kwds)
}
Пример #6
0
func (pos *Absolute) PyGet_region() (py.Object, error) {
	fn := pybind.Wrap(pos.RegionOf)
	return fn(nil, nil)
}
Пример #7
0
func (c *Collection) PyGet_removing() (py.Object, error) {
	fn := pybind.Wrap(c.Removing)
	return fn(nil, nil)
}
Пример #8
0
func (c *Connection) PyGet_log() (py.Object, error) {
	fn := pybind.Wrap(c.Log)
	return fn(nil, nil)
}
Пример #9
0
func (s *Slice) Py_add(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(s.Add)
	return fn(args, kwds)
}
Пример #10
0
func (local *Local) PyGet_region() (py.Object, error) {
	fn := pybind.Wrap(local.Region)
	return fn(nil, nil)
}
Пример #11
0
func (region *Region) Py_rebase(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(region.Rebase)
	return fn(args, kwds)
}
Пример #12
0
func (l *List) Py_add_all(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(l.AddAll)
	return fn(args, kwds)
}
Пример #13
0
func (l *List) Py_remove_all(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(l.RemoveAll)
	return fn(args, kwds)
}
Пример #14
0
func (s *Slice) PyGet_size() (py.Object, error) {
	fn := pybind.Wrap(s.Size)
	return fn(nil, nil)
}
Пример #15
0
func (s *Slice) Py_filter(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(s.Filter)
	return fn(args, kwds)
}
Пример #16
0
func (s *Slice) Py_empty(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(s.Empty)
	return fn(args, kwds)
}
Пример #17
0
func (sector *Sector) PyGet_z() (py.Object, error) {
	fn := pybind.Wrap(sector.Z)
	return fn(nil, nil)
}
Пример #18
0
func (local *Local) PyGet_absolute() (py.Object, error) {
	fn := pybind.Wrap(local.Absolute)
	return fn(nil, nil)
}
Пример #19
0
func (region *Region) PyGet_origin() (py.Object, error) {
	fn := pybind.Wrap(region.Origin)
	return fn(nil, nil)
}
Пример #20
0
func (s *Skills) PyGet_combat_level() (py.Object, error) {
	fn := pybind.Wrap(s.CombatLevel)
	return fn(nil, nil)
}
Пример #21
0
func (local *Local) PyGet_z() (py.Object, error) {
	fn := pybind.Wrap(local.Z)
	return fn(nil, nil)
}
Пример #22
0
func (c *Context) Py_unpack(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(c.Unpack)
	return fn(args, kwds)
}
Пример #23
0
func (area *Area) PyGet_min_sector() (py.Object, error) {
	fn := pybind.Wrap(area.MinSector)
	return fn(nil, nil)
}
Пример #24
0
func (c *Collection) PyGet_entities() (py.Object, error) {
	fn := pybind.Wrap(c.Entities)
	return fn(nil, nil)
}
Пример #25
0
func (world *Instance) Py_sector(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(world.Sector)
	return fn(args, kwds)
}
Пример #26
0
func (area *Area) PyGet_max() (py.Object, error) {
	fn := pybind.Wrap(area.Max)
	return fn(nil, nil)
}
Пример #27
0
func (s *Server) Py_stop(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(s.Stop)
	return fn(args, kwds)
}
Пример #28
0
func (area *Area) Py_contains(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(area.Contains)
	return fn(args, kwds)
}
Пример #29
0
func (c *Connection) Py_disconnect(args *py.Tuple, kwds *py.Dict) (py.Object, error) {
	fn := pybind.Wrap(c.Disconnect)
	return fn(args, kwds)
}
Пример #30
0
func (pos *Absolute) PyGet_sector() (py.Object, error) {
	fn := pybind.Wrap(pos.Sector)
	return fn(nil, nil)
}