Example #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
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #6
0
func (pos *Absolute) PyGet_region() (py.Object, error) {
	fn := pybind.Wrap(pos.RegionOf)
	return fn(nil, nil)
}
Example #7
0
func (c *Collection) PyGet_removing() (py.Object, error) {
	fn := pybind.Wrap(c.Removing)
	return fn(nil, nil)
}
Example #8
0
func (c *Connection) PyGet_log() (py.Object, error) {
	fn := pybind.Wrap(c.Log)
	return fn(nil, nil)
}
Example #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)
}
Example #10
0
func (local *Local) PyGet_region() (py.Object, error) {
	fn := pybind.Wrap(local.Region)
	return fn(nil, nil)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #14
0
func (s *Slice) PyGet_size() (py.Object, error) {
	fn := pybind.Wrap(s.Size)
	return fn(nil, nil)
}
Example #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)
}
Example #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)
}
Example #17
0
func (sector *Sector) PyGet_z() (py.Object, error) {
	fn := pybind.Wrap(sector.Z)
	return fn(nil, nil)
}
Example #18
0
func (local *Local) PyGet_absolute() (py.Object, error) {
	fn := pybind.Wrap(local.Absolute)
	return fn(nil, nil)
}
Example #19
0
func (region *Region) PyGet_origin() (py.Object, error) {
	fn := pybind.Wrap(region.Origin)
	return fn(nil, nil)
}
Example #20
0
func (s *Skills) PyGet_combat_level() (py.Object, error) {
	fn := pybind.Wrap(s.CombatLevel)
	return fn(nil, nil)
}
Example #21
0
func (local *Local) PyGet_z() (py.Object, error) {
	fn := pybind.Wrap(local.Z)
	return fn(nil, nil)
}
Example #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)
}
Example #23
0
func (area *Area) PyGet_min_sector() (py.Object, error) {
	fn := pybind.Wrap(area.MinSector)
	return fn(nil, nil)
}
Example #24
0
func (c *Collection) PyGet_entities() (py.Object, error) {
	fn := pybind.Wrap(c.Entities)
	return fn(nil, nil)
}
Example #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)
}
Example #26
0
func (area *Area) PyGet_max() (py.Object, error) {
	fn := pybind.Wrap(area.Max)
	return fn(nil, nil)
}
Example #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)
}
Example #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)
}
Example #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)
}
Example #30
0
func (pos *Absolute) PyGet_sector() (py.Object, error) {
	fn := pybind.Wrap(pos.Sector)
	return fn(nil, nil)
}